mirror of https://github.com/OpenTTD/OpenTTD
Fix 14f197c: [Script] int64 values don't fit into int (#9465)
parent
8706dcd9c1
commit
4eb368c786
|
@ -832,7 +832,7 @@ SQInteger ScriptList::_nexti(HSQUIRRELVM vm)
|
||||||
SQInteger idx;
|
SQInteger idx;
|
||||||
sq_getinteger(vm, 2, &idx);
|
sq_getinteger(vm, 2, &idx);
|
||||||
|
|
||||||
int val = this->Next();
|
SQInteger val = this->Next();
|
||||||
if (this->IsEnd()) {
|
if (this->IsEnd()) {
|
||||||
sq_pushnull(vm);
|
sq_pushnull(vm);
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue