1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-23 21:29:13 +02:00

- compile fix

This commit is contained in:
Ivan Savenko 2013-09-02 13:24:32 +00:00
parent 385f4ab7f5
commit 6ec96b50d7

View File

@ -358,7 +358,7 @@ void CCallback::unregisterMyInterface()
//TODO? should callback be disabled as well? //TODO? should callback be disabled as well?
//Disabled interface will be deleted very soon, so switch LOCPLINT to next player available //Disabled interface will be deleted very soon, so switch LOCPLINT to next player available
if(playerInt == LOCPLINT && cl->playerint.size()) if(playerInt.get() == LOCPLINT && cl->playerint.size())
{ {
LOCPLINT = dynamic_cast<CPlayerInterface*>(cl->playerint.begin()->second.get()); LOCPLINT = dynamic_cast<CPlayerInterface*>(cl->playerint.begin()->second.get());
} }