mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Fix most of memleaks discovered by valgrind
This commit is contained in:
@@ -860,7 +860,7 @@ void CGameHandler::onNewTurn()
|
||||
fw.mode = ETileVisibility::REVEALED;
|
||||
fw.player = player;
|
||||
// find all hidden tiles
|
||||
const auto fow = getPlayerTeam(player)->fogOfWarMap;
|
||||
const auto & fow = getPlayerTeam(player)->fogOfWarMap;
|
||||
|
||||
auto shape = fow->shape();
|
||||
for(size_t z = 0; z < shape[0]; z++)
|
||||
|
||||
Reference in New Issue
Block a user