summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-06-05 11:59:27 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-06-05 11:59:27 +0200
commit83e4023dc0db52d3982dcbe4148f2c77b5a48b97 (patch)
tree79157d3da8c47b971a14d1d410110ab90a22e0db /src/control
parentMerge pull request #618 from Nick007J/miami (diff)
downloadre3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar.gz
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar.bz2
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar.lz
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar.xz
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.tar.zst
re3-83e4023dc0db52d3982dcbe4148f2c77b5a48b97.zip
Diffstat (limited to 'src/control')
-rw-r--r--src/control/Script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 15132f42..d62bed35 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -8056,7 +8056,7 @@ int8 CRunningScript::ProcessCommands900To999(int32 command)
CVehicle* pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[0]);
assert(pVehicle);
if (pVehicle->IsBike()) {
- CBike* pBike = (CBike*)pBike;
+ CBike* pBike = (CBike*)pVehicle;
pBike->bWaterTight = ScriptParams[1] != 0;
}
else if (pVehicle->IsCar()) {