Exceptions are being thrown; retiring for the night

I don't know what's causing these issues, so I'm leaving it for tonight.
This commit is contained in:
Kayne Ruse
2014-04-26 02:48:15 +10:00
parent 6f1c2d0555
commit 9ec1ddab99
3 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -287,7 +287,8 @@ void InWorld::HandleRegionContent(SerialPacket packet) {
void InWorld::HandlePlayerUpdate(SerialPacket packet) {
if (playerCharacters.find(packet.playerInfo.playerIndex) == playerCharacters.end()) {
throw(std::runtime_error("Cannot update nen-existant players"));
HandlePlayerNew(packet);
return;
}
//update only if the message didn't originate from here