1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Compile fix.

This commit is contained in:
Michał W. Urbańczyk
2011-01-15 02:36:10 +00:00
parent f52d4f7cd6
commit 7b0188a941

View File

@@ -3811,7 +3811,7 @@ void CGameHandler::handleTimeEvents()
gs->map->events.pop_front(); gs->map->events.pop_front();
ev->firstOccurence += ev->nextOccurence; ev->firstOccurence += ev->nextOccurence;
std::list<CMapEvent*>::iterator it = gs->map->events.begin(); std::list<ConstTransitivePtr<CMapEvent> >::iterator it = gs->map->events.begin();
while ( it !=gs->map->events.end() && **it <= *ev ) while ( it !=gs->map->events.end() && **it <= *ev )
it++; it++;
gs->map->events.insert(it, ev); gs->map->events.insert(it, ev);