mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Added 'Serializeable' base class for classes serializeable by pointer
This commit is contained in:
@@ -884,11 +884,11 @@ void CGameHandler::onNewTurn()
|
||||
// find all hidden tiles
|
||||
const auto & fow = getPlayerTeam(player)->fogOfWarMap;
|
||||
|
||||
auto shape = fow->shape();
|
||||
auto shape = fow.shape();
|
||||
for(size_t z = 0; z < shape[0]; z++)
|
||||
for(size_t x = 0; x < shape[1]; x++)
|
||||
for(size_t y = 0; y < shape[2]; y++)
|
||||
if (!(*fow)[z][x][y])
|
||||
if (!fow[z][x][y])
|
||||
fw.tiles.insert(int3(x, y, z));
|
||||
|
||||
sendAndApply (&fw);
|
||||
|
||||
Reference in New Issue
Block a user