]> git.stg.codes - stg.git/blobdiff - stargazer/actions.h
Remove std::list from actions.
[stg.git] / stargazer / actions.h
index 66b8556d1144ab43344378865ecbbc18261fc043..eea72b77aa7357b456b955c35f1b3d33aa18a62f 100644 (file)
@@ -14,7 +14,7 @@
 // actionsList.InvokeAll();
 
 #include <pthread.h>
-#include <list>
+#include <vector>
 #include <functional>
 
 // Generalized actor type - a method of some class with one argument
@@ -54,11 +54,11 @@ private:
 
 // A list of an actions
 // All methods are thread-safe
-class ACTIONS_LIST : private std::list<BASE_ACTION *>
+class ACTIONS_LIST : private std::vector<BASE_ACTION *>
 {
 public:
     // Just a typedef for parent class
-    typedef std::list<BASE_ACTION *> parent;
+    typedef std::vector<BASE_ACTION *> parent;
 
     // Initialize mutex
     ACTIONS_LIST();