Fix crash when receiving invalid packets with very low ids.

Also fix benign NPC deallocation bug.
This commit is contained in:
2020-08-26 22:22:52 +02:00
parent e0c00bcdc8
commit 9b0cb7f441
2 changed files with 4 additions and 4 deletions

View File

@@ -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);