summaryrefslogtreecommitdiffstats
path: root/src/control/Script6.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-04 09:58:12 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-04 09:58:12 +0100
commit1efbd7ead2ffbf3282e2a31f580ff313c684a4cc (patch)
tree94abfde1742090c29fdc2ae0ba9043088332a545 /src/control/Script6.cpp
parentdumb (diff)
downloadre3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar.gz
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar.bz2
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar.lz
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar.xz
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.tar.zst
re3-1efbd7ead2ffbf3282e2a31f580ff313c684a4cc.zip
Diffstat (limited to 'src/control/Script6.cpp')
-rw-r--r--src/control/Script6.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Script6.cpp b/src/control/Script6.cpp
index 501a7873..b9ec31ee 100644
--- a/src/control/Script6.cpp
+++ b/src/control/Script6.cpp
@@ -1191,7 +1191,7 @@ int8 CRunningScript::ProcessCommands1100To1199(int32 command)
CollectParameters(&m_nIp, 8);
CPed *pPed = CPools::GetPedPool()->GetAt(ScriptParams[0]);
CVehicle *pVehicle = CPools::GetVehiclePool()->GetAt(ScriptParams[1]);
- pPed->AttachPedToEntity(pVehicle, *(CVector*)&ScriptParams[2], ScriptParams[5], DEGTORAD(ScriptParams[6]), (eWeaponType)ScriptParams[7]);
+ pPed->AttachPedToEntity(pVehicle, *(CVector*)&ScriptParams[2], ScriptParams[5], DEGTORAD(*(float*)&ScriptParams[6]), (eWeaponType)ScriptParams[7]);
return 0;
}
case COMMAND_DETACH_CHAR_FROM_CAR: