Fix 14f197c: [Script] int64 values don't fit into int (#9465)

This commit is contained in:
Loïc Guilloux
2021-08-10 19:00:54 +02:00
committed by GitHub
parent 8706dcd9c1
commit 4eb368c786

View File

@@ -832,7 +832,7 @@ SQInteger ScriptList::_nexti(HSQUIRRELVM vm)
SQInteger idx;
sq_getinteger(vm, 2, &idx);
int val = this->Next();
SQInteger val = this->Next();
if (this->IsEnd()) {
sq_pushnull(vm);
return 1;