1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-13 08:13:37 +02: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:
Misa 2020-07-02 16:07:35 -07:00 committed by Ethan Lee
parent 689af99220
commit c7774a3eb9
2 changed files with 1 additions and 3 deletions

View File

@ -11,8 +11,6 @@ scriptclass::scriptclass()
//Start SDL
//Init
words.resize(40);
position = 0;
scriptdelay = 0;
running = false;

View File

@ -49,7 +49,7 @@ public:
//Script contents
std::vector<std::string> commands;
std::vector<std::string> words;
std::string words[40];
std::vector<std::string> txt;
std::string scriptname;
int position;