diff options
author | Loïc Guilloux <glx22@users.noreply.github.com> | 2021-08-10 19:00:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 19:00:54 +0200 |
commit | 4eb368c786893e3607341bae35aec6dde5def6b0 (patch) | |
tree | f6ac1ec98db7411491408f2845be92b70111cea0 /src/script/api | |
parent | 8706dcd9c1ac8f695b7a0cb1a204fb6bcbaa492f (diff) | |
download | openttd-4eb368c786893e3607341bae35aec6dde5def6b0.tar.xz |
Fix 14f197c: [Script] int64 values don't fit into int (#9465)
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_list.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_list.cpp b/src/script/api/script_list.cpp index 623128bdd..f56326704 100644 --- a/src/script/api/script_list.cpp +++ b/src/script/api/script_list.cpp @@ -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; |