mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 23:42:21 +03:00
Turn words into an array instead of an std::vector
It never changes its size, so it doesn't need to be a dynamically-sized vector.
This commit is contained in:
@@ -11,8 +11,6 @@ scriptclass::scriptclass()
|
|||||||
//Start SDL
|
//Start SDL
|
||||||
|
|
||||||
//Init
|
//Init
|
||||||
words.resize(40);
|
|
||||||
|
|
||||||
position = 0;
|
position = 0;
|
||||||
scriptdelay = 0;
|
scriptdelay = 0;
|
||||||
running = false;
|
running = false;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ public:
|
|||||||
|
|
||||||
//Script contents
|
//Script contents
|
||||||
std::vector<std::string> commands;
|
std::vector<std::string> commands;
|
||||||
std::vector<std::string> words;
|
std::string words[40];
|
||||||
std::vector<std::string> txt;
|
std::vector<std::string> txt;
|
||||||
std::string scriptname;
|
std::string scriptname;
|
||||||
int position;
|
int position;
|
||||||
|
|||||||
Reference in New Issue
Block a user