summaryrefslogtreecommitdiffstats
path: root/src/control/Script9.cpp
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:24 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 21:04:24 +0100
commit37d1aa41296f3ea1e912041d4fc201df54ad2639 (patch)
tree5b01aa010def0f2dcc739559237d627ceb44e3eb /src/control/Script9.cpp
parentadded some missing functions (diff)
downloadre3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.gz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.bz2
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.lz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.xz
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.tar.zst
re3-37d1aa41296f3ea1e912041d4fc201df54ad2639.zip
Diffstat (limited to 'src/control/Script9.cpp')
-rw-r--r--src/control/Script9.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/control/Script9.cpp b/src/control/Script9.cpp
index 183f73e7..020221c4 100644
--- a/src/control/Script9.cpp
+++ b/src/control/Script9.cpp
@@ -636,7 +636,7 @@ int8 CRunningScript::ProcessCommands1500To1599(int32 command)
case COMMAND_ADD_POINT_3D_MARKER:
{
uint32 ip = m_nIp;
- uint32 id = (uint32)(uintptr)GetPointerToScriptVariable(&m_nIp, 0);
+ uint32 id = (uint32)(uintptr)GetPointerToScriptVariable(&ip, 0);
static CVector vPreviousLocation;
CollectParameters(&m_nIp, 7);
CVector pos = GET_VECTOR_PARAM(0);
@@ -737,10 +737,10 @@ int8 CRunningScript::ProcessCommands1500To1599(int32 command)
}
case COMMAND_SET_CHAR_ATTACKS_PLAYER_WITH_COPS:
{
- CollectParameters(&m_nIp, 1);
+ CollectParameters(&m_nIp, 2);
CPed* pPed = CPools::GetPedPool()->GetAt(GET_INTEGER_PARAM(0));
script_assert(pPed);
- pPed->bAttacksPlayerWithCops = (GET_INTEGER_PARAM(0) != 0);
+ pPed->bAttacksPlayerWithCops = (GET_INTEGER_PARAM(1) != 0);
return 0;
}
case COMMAND_REGISTER_FACE_PLANT_DISTANCE: