Grenade bug

arenoo

Member
When the last grenade is thrown and it damages a player a NullReferenceException is thrown. Reproducible in the demo scene. This is happening because in PunHealthMonitor at line 72 (sourceItemIdentifierID = itemAction.CharacterItem.ItemIdentifier.ID;) the itemIdentifier is null at the time of explosion. And that is because the CharacterItem.ResetInitialization is called before the actual explosion. How can I fix this?
 
Back
Top