1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Survive client<->server ABI mismatch

This commit is contained in:
Vadim Markovtsev
2016-10-02 22:41:57 +02:00
parent a15b8f4c99
commit eac5aab396
7 changed files with 27 additions and 13 deletions

View File

@@ -965,9 +965,9 @@ void CGameHandler::handleConnection(std::set<PlayerColor> players, CConnection &
}
else if(apply)
{
const bool result = apply->applyOnGH(this,&c,pack, player);
const bool result = apply->applyOnGH(this, &c, pack, player);
if(result)
logGlobal->trace("Message successfully applied!");
logGlobal->traceStream() << "Message " << typeid(*pack).name() << " successfully applied!";
else
complain((boost::format("Got false in applying %s... that request must have been fishy!")
% typeid(*pack).name()).str());