Add sfallArraysReset

This commit is contained in:
Vasilii Rogin 2023-04-20 09:34:53 +03:00
parent 09da584210
commit 0c083a8274
3 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,7 @@
#include "random.h"
#include "scripts.h"
#include "settings.h"
#include "sfall_arrays.h"
#include "sfall_config.h"
#include "sfall_global_vars.h"
#include "sfall_lists.h"
@ -401,6 +402,7 @@ void gameReset()
sfallGlobalVarsReset();
sfallListsReset();
messageListRepositoryReset();
sfallArraysReset();
}
// 0x442C34

View File

@ -157,4 +157,12 @@ void DeleteAllTempArrays()
}
temporaryArrays.clear();
}
void sfallArraysReset()
{
temporaryArrays.clear();
arrays.clear();
nextArrayID = 1;
stackArrayId = 1;
}
}

View File

@ -23,5 +23,7 @@ void SetArray(ArrayId array_id, const SFallScriptValue& key, const SFallScriptVa
void FreeArray(ArrayId array_id);
void FixArray(ArrayId id);
void DeleteAllTempArrays();
void sfallArraysReset();
}
#endif /* SFALL_ARRAYS */