From 5e1113d8840dfb287a81527c4869b8d6a6c67f43 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sun, 17 Jan 2021 18:46:49 +0300 Subject: fix attempt --- src/control/Script5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/Script5.cpp b/src/control/Script5.cpp index 65e85779..bddcac62 100644 --- a/src/control/Script5.cpp +++ b/src/control/Script5.cpp @@ -27,7 +27,7 @@ uint32 CRunningScript::CollectLocateParameters(uint32* pIp, bool b3D) uint8 type = CTheScripts::Read1ByteFromScript(&ip); if (type >= ARGUMENT_LOCAL) { ip--; - id = (uint32)GetPointerToScriptVariable(&ip, 0); + id = (uint32)(uintptr)GetPointerToScriptVariable(&ip, 0); } CollectParameters(pIp, b3D ? 7 : 5, &(ScriptParams[1])); return id; -- cgit v1.2.3