Skip to content

Commit 594afaa

Browse files
committed
Update CStaticFunctionDefinitions.cpp
1 parent 0691c8f commit 594afaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Server/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,10 +938,11 @@ bool CStaticFunctionDefinitions::SetElementCallPropagationEnabled(CElement* pEle
938938

939939
bool CStaticFunctionDefinitions::SetElementOnFire(CElement* pElement, bool onFire)
940940
{
941+
assert(pElement);
942+
941943
if (!IS_PED(pElement) && !IS_VEHICLE(pElement) && !IS_OBJECT(pElement) && !IS_WEAPON(pElement))
942944
return false;
943945

944-
assert(pElement);
945946
RUN_CHILDREN(SetElementOnFire(*iter, onFire));
946947

947948
CBitStream bitStream;

0 commit comments

Comments
 (0)