diff --git a/CCallback.cpp b/CCallback.cpp index f26170fe7..4b5e9ea54 100644 --- a/CCallback.cpp +++ b/CCallback.cpp @@ -358,7 +358,7 @@ void CCallback::unregisterMyInterface() //TODO? should callback be disabled as well? //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(cl->playerint.begin()->second.get()); }