1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +02:00

* towards ConstTranssitivePointers in CGI

This commit is contained in:
mateuszb
2010-12-18 22:11:28 +00:00
parent 23c501b79e
commit 5806976a9a
14 changed files with 48 additions and 48 deletions

View File

@ -413,7 +413,7 @@ DLL_EXPORT void RazeStructures::applyGs( CGameState *gs )
}
DLL_EXPORT void SetAvailableCreatures::applyGs( CGameState *gs )
{
CGDwelling *dw = dynamic_cast<CGDwelling*>(+gs->map->objects[tid]);
CGDwelling *dw = dynamic_cast<CGDwelling*>(gs->map->objects[tid].get());
assert(dw);
dw->creatures = creatures;
}
@ -687,7 +687,7 @@ DLL_EXPORT void SetAvailableArtifacts::applyGs( CGameState *gs )
{
if(id >= 0)
{
if(CGBlackMarket *bm = dynamic_cast<CGBlackMarket*>(+gs->map->objects[id]))
if(CGBlackMarket *bm = dynamic_cast<CGBlackMarket*>(gs->map->objects[id].get()))
{
bm->artifacts = arts;
}