diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-02-02 12:09:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-02 12:09:39 +0100 |
commit | b0e4f40f44433fbbaea8d456f37fb902b09d77dd (patch) | |
tree | 71aa19b82dd93e042d9422aa9d672a3205cc8d0a | |
parent | fixed police ignore bug (diff) | |
download | re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar.gz re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar.bz2 re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar.lz re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar.xz re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.tar.zst re3-b0e4f40f44433fbbaea8d456f37fb902b09d77dd.zip |
-rw-r--r-- | src/control/Script.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp index 25b6d27c..a3d4a747 100644 --- a/src/control/Script.cpp +++ b/src/control/Script.cpp @@ -5826,7 +5826,7 @@ int8 CRunningScript::ProcessCommands700To799(int32 command) assert(pVehicle); assert(pVehicle->m_vehType == VEHICLE_TYPE_BOAT); CBoat* pBoat = (CBoat*)pVehicle; - pBoat->AutoPilot.m_nCruiseSpeed = ScriptParams[1]; + pBoat->AutoPilot.m_nCruiseSpeed = *(float*)&ScriptParams[1]; return 0; } case COMMAND_GET_RANDOM_CHAR_IN_AREA: |