mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Introduced strongly typed QueryID.
Exchange between heroes is now a proper first-class query. Fixes #1269. #66 should also be finally fully fixed. VC projects: /Zm flag to fix compilation issues with recent Boost.
This commit is contained in:
@@ -232,7 +232,7 @@ bool QueryReply::applyGh( CGameHandler *gh )
|
||||
COMPLAIN_AND_RETURN("No such player!");
|
||||
if(playerToConnection->second != c)
|
||||
COMPLAIN_AND_RETURN("Message came from wrong connection!");
|
||||
if(qid == -1)
|
||||
if(qid == QueryID(-1))
|
||||
COMPLAIN_AND_RETURN("Cannot answer the query with id -1!");
|
||||
|
||||
assert(vstd::contains(gh->states.players, player));
|
||||
|
||||
Reference in New Issue
Block a user