Add sfallArraysReset
This commit is contained in:
parent
09da584210
commit
0c083a8274
|
@ -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
|
||||
|
|
|
@ -157,4 +157,12 @@ void DeleteAllTempArrays()
|
|||
}
|
||||
temporaryArrays.clear();
|
||||
}
|
||||
|
||||
void sfallArraysReset()
|
||||
{
|
||||
temporaryArrays.clear();
|
||||
arrays.clear();
|
||||
nextArrayID = 1;
|
||||
stackArrayId = 1;
|
||||
}
|
||||
}
|
|
@ -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 */
|
Loading…
Reference in New Issue