1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +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:
Michał W. Urbańczyk
2013-05-27 10:53:28 +00:00
parent 09e2f0f021
commit 79026bdfde
28 changed files with 173 additions and 116 deletions

View File

@ -37,7 +37,7 @@ CQuery::CQuery(void)
{
boost::unique_lock<boost::mutex> l(Queries::mx);
static TQueryID QID = 1;
static QueryID QID = QueryID(1);
queryID = QID++;
logGlobal->traceStream() << "Created a new query with id " << queryID;