Skip to content

Commit

Permalink
Fix #1181 setPedWeaponSlot doesn't update data (#3525)
Browse files Browse the repository at this point in the history
  • Loading branch information
FileEX authored Jul 14, 2024
1 parent 4994504 commit 9615523
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4141,6 +4141,8 @@ bool CStaticFunctionDefinitions::SetPedWeaponSlot(CElement* pElement, unsigned c
CPed* pPed = static_cast<CPed*>(pElement);
if (pPed->IsSpawned())
{
pPed->SetWeaponSlot(ucWeaponSlot);

CBitStream BitStream;

SWeaponSlotSync slot;
Expand Down

0 comments on commit 9615523

Please sign in to comment.