Skip to content

Commit

Permalink
fix(gamestate/client): null gameobject reference in RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
blattersturm committed Feb 5, 2023
1 parent 1c274c1 commit 49c714d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/gta-net-five/src/CloneExperiments.cpp
Expand Up @@ -4418,7 +4418,7 @@ int ObjectToEntity(int objectId)
int entityIdx = -1;
auto object = TheClones->GetNetObject(objectId & 0xFFFF);

if (object)
if (object && object->GetGameObject())
{
entityIdx = getScriptGuidForEntity(object->GetGameObject());
}
Expand Down

0 comments on commit 49c714d

Please sign in to comment.