1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

All adventure map components now use shared_ptr

This commit is contained in:
Ivan Savenko
2023-02-10 16:26:32 +02:00
parent f8c1c46562
commit cc0c3e5bc9
6 changed files with 150 additions and 134 deletions

View File

@@ -12,6 +12,7 @@
#include "CMinimap.h"
#include "CAdvMapInt.h"
#include "CTerrainRect.h"
#include "../widgets/Images.h"
#include "../CGameInfo.h"
@@ -167,7 +168,7 @@ void CMinimap::showAll(SDL_Surface * to)
Canvas target(to);
int3 mapSizes = LOCPLINT->cb->getMapSize();
int3 tileCountOnScreen = adventureInt->terrain.tileCountOnScreen();
int3 tileCountOnScreen = adventureInt->terrain->tileCountOnScreen();
//draw radar
Rect radar =