summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2019-07-14 14:00:36 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2019-07-14 14:00:36 +0200
commite16562aa6deea5e15376afe0fcb3149a04a7b3c7 (patch)
tree4977eaa5d07dc5236c4b58b01e76265c888f3c08 /src/control
parentRunningScript 2. So far with bugs (cops not caring, errors in arithmetical opcodes) (diff)
downloadre3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar.gz
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar.bz2
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar.lz
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar.xz
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.tar.zst
re3-e16562aa6deea5e15376afe0fcb3149a04a7b3c7.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index a3a310ad..f3996872 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1561,13 +1561,13 @@ int8 CRunningScript::ProcessCommandsFrom100To199(int32 command)
}
case COMMAND_ABS_VAR_FLOAT:
{
- int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
+ float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_GLOBAL);
*ptr = abs(*ptr);
return 0;
}
case COMMAND_ABS_LVAR_FLOAT:
{
- int32* ptr = GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
+ float* ptr = (float*)GetPointerToScriptVariable(&m_nIp, VAR_LOCAL);
*ptr = abs(*ptr);
return 0;
}