Changeset - r26030:7735e539300e
[Not reviewed]
master
0 1 0
Loïc Guilloux - 3 years ago 2021-10-20 10:23:16
glx22@users.noreply.github.com
Fix #9626, ddafc0d: Incorrect loading of script saved data (#9629)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/script/script_instance.cpp
Show inline comments
 
@@ -562,13 +562,13 @@ bool ScriptInstance::IsPaused()
 
/* static */ bool ScriptInstance::LoadObjects(HSQUIRRELVM vm)
 
{
 
	SlObject(nullptr, _script_byte);
 
	switch (_script_sl_byte) {
 
		case SQSL_INT: {
 
			int64 value;
 
			SlCopy(&value, 1, IsSavegameVersionBefore(SLV_SCRIPT_INT64) ? SLE_INT32 : SLE_INT64);
 
			SlCopy(&value, 1, IsSavegameVersionBefore(SLV_SCRIPT_INT64) ? SLE_FILE_I32 | SLE_VAR_I64 : SLE_INT64);
 
			if (vm != nullptr) sq_pushinteger(vm, (SQInteger)value);
 
			return true;
 
		}
 

	
 
		case SQSL_STRING: {
 
			SlObject(nullptr, _script_byte);
0 comments (0 inline, 0 general)