Added character validation

This commit is contained in:
2016-12-09 22:38:11 +11:00
parent 55abdfc7d0
commit 9c9f30790e
4 changed files with 123 additions and 2 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ void World::Update() {
throw(e);
}
catch(std::exception& e) {
std::cerr << "HandlePacket Error: " << e.what() << std::endl;
std::cerr << "HandlePacket Error (" << (int)(reinterpret_cast<SerialPacket*>(packetBuffer)->type) << "): " << e.what() << std::endl;
}
//free the buffer