mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Do not use StackLocation in netpacks
This commit is contained in:
committed by
ArseniyShestakov
parent
8cec07afbd
commit
03cfd2cb78
@@ -224,12 +224,17 @@ PlayerState * CNonConstInfoCallback::getPlayer( PlayerColor color, bool verbose
|
||||
|
||||
CArtifactInstance * CNonConstInfoCallback::getArtInstance( ArtifactInstanceID aid )
|
||||
{
|
||||
return gs->map->artInstances[aid.num];
|
||||
return gs->map->artInstances.at(aid.num);
|
||||
}
|
||||
|
||||
CGObjectInstance * CNonConstInfoCallback::getObjInstance( ObjectInstanceID oid )
|
||||
{
|
||||
return gs->map->objects[oid.num];
|
||||
return gs->map->objects.at(oid.num);
|
||||
}
|
||||
|
||||
CArmedInstance * CNonConstInfoCallback::getArmyInstance(ObjectInstanceID oid)
|
||||
{
|
||||
return dynamic_cast<CArmedInstance *>(getObjInstance(oid));
|
||||
}
|
||||
|
||||
const CGObjectInstance * IGameCallback::putNewObject(Obj ID, int subID, int3 pos)
|
||||
|
||||
Reference in New Issue
Block a user