aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-10-30 08:33:40 -0700
committerChris Robinson <[email protected]>2018-10-30 08:33:40 -0700
commitc17e59f63ae6f6d49f913d446e66812b9912da3e (patch)
treedc3cafbd0e314695bf7f37d00f43caf86448c428 /router/router.h
parente75e0a342ecb78a47bebe0b7f5124dfb83c56f32 (diff)
Use std::vector instead of custom dynamic arrays
Diffstat (limited to 'router/router.h')
-rw-r--r--router/router.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/router/router.h b/router/router.h
index 1a86da02..c7d2c89e 100644
--- a/router/router.h
+++ b/router/router.h
@@ -7,6 +7,7 @@
#include <stdio.h>
+#include <vector>
#include <atomic>
#include "AL/alc.h"
@@ -137,8 +138,7 @@ typedef struct DriverIface {
LPALDISTANCEMODEL alDistanceModel;
} DriverIface;
-extern DriverIface *DriverList;
-extern int DriverListSize;
+extern std::vector<DriverIface> DriverList;
extern thread_local DriverIface *ThreadCtxDriver;
extern std::atomic<DriverIface*> CurrentCtxDriver;