this should be here

This commit is contained in:
DarthArgus
2017-01-08 03:17:01 -06:00
parent 741a9ffc2b
commit 77d3e6de86

View File

@@ -945,6 +945,10 @@ void Client::receiveClientMessage(const GameNetworkMessage &message) {
}
}
}
if (!appended) {
delete o.getData();
}
} else {
// log as a likely hack
LOG("HackAttempts", ("Unauthorized Controller Message: Player %s at %s sent an unauthorized controller message %d for object %s", PlayerObject::getAccountDescription(getCharacterObjectId()).c_str(), getIpAddress().c_str(), o.getMessage(), o.getNetworkId().getValueString().c_str()));
@@ -957,10 +961,6 @@ void Client::receiveClientMessage(const GameNetworkMessage &message) {
return;
}
if (!appended) {
delete o.getData();
}
break;
}