mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-05 13:17:11 +02:00
Return null entity instances instead of null for the functions that need to return an entity instance.
Finally fix the player unspectating bug and introduce a new event for when a player spectates none. Update the global functions that check for player existance to use the new implementation.
This commit is contained in:
1 parent
8e07d37ec2
commit
8125400f7f
10 files changed
+36
-38
No files matched your search
@@ -131,7 +131,7 @@ static const LightObj & Blip_FindBySprID(Int32 sprid)
|
||||
}
|
||||
}
|
||||
// Unable to locate a blip matching the specified identifier
|
||||
return NullLightObj();
|
||||
return Core::Get().GetNullBlip();
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user