mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
some changes
This commit is contained in:
@@ -54,7 +54,7 @@ const CGTownInstance* IGameCallback::getTown(int objid)
|
||||
{
|
||||
const CGObjectInstance *obj = getObj(objid, false);
|
||||
if(obj)
|
||||
return dynamic_cast<const CGTownInstance*>(gs->map->objects[objid]);
|
||||
return dynamic_cast<const CGTownInstance*>(+gs->map->objects[objid]);
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user