summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-08-10 19:00:54 +0200
committerGitHub <noreply@github.com>2021-08-10 19:00:54 +0200
commit4eb368c786893e3607341bae35aec6dde5def6b0 (patch)
treef6ac1ec98db7411491408f2845be92b70111cea0 /src/script
parent8706dcd9c1ac8f695b7a0cb1a204fb6bcbaa492f (diff)
downloadopenttd-4eb368c786893e3607341bae35aec6dde5def6b0.tar.xz
Fix 14f197c: [Script] int64 values don't fit into int (#9465)
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_list.cpp2
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;