mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Core: Fix some build errors after code style cleanup
This commit is contained in:
@@ -143,7 +143,7 @@ void Map::LoadMap(int gx, int gy, bool reload)
|
||||
if (!m_parentMap->GridMaps[gx][gy])
|
||||
m_parentMap->EnsureGridCreated(GridPair(63-gx, 63-gy));
|
||||
|
||||
((Mainstanced*)(m_parentMap))->AddGridMapReference(GridPair(gx, gy));
|
||||
((MapInstanced*)(m_parentMap))->AddGridMapReference(GridPair(gx, gy));
|
||||
GridMaps[gx][gy] = m_parentMap->GridMaps[gx][gy];
|
||||
return;
|
||||
}
|
||||
@@ -992,7 +992,7 @@ bool Map::UnloadGrid(const uint32 x, const uint32 y, bool unloadAll)
|
||||
VMAP::VMapFactory::createOrGetVMapManager()->unloadMap(GetId(), gx, gy);
|
||||
}
|
||||
else
|
||||
((Mainstanced*)m_parentMap)->RemoveGridMapReference(GridPair(gx, gy));
|
||||
((MapInstanced*)m_parentMap)->RemoveGridMapReference(GridPair(gx, gy));
|
||||
|
||||
GridMaps[gx][gy] = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user