mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-03-02 14:20:03 +00:00
Fix crash when receiving invalid packets with very low ids.
Also fix benign NPC deallocation bug.
This commit is contained in:
@@ -106,9 +106,9 @@ void NPCManager::updatePlayerNPCS(CNSocket* sock, PlayerView& view) {
|
||||
|
||||
// remove from view
|
||||
view.viewableNPCs.erase(i++);
|
||||
} else {
|
||||
i++;
|
||||
}
|
||||
|
||||
++i;
|
||||
}
|
||||
|
||||
INITSTRUCT(sP_FE2CL_NPC_ENTER, enterData);
|
||||
|
||||
Reference in New Issue
Block a user