Closed flavius closed 6 years ago
Map has a public method to modify itself, that's setMarksCell.
At the same time, Game allows its own map to be retrieved.
Which means that any caller can $game->getMap()->setMarksCell() and corrupt the Map.
$game->getMap()->setMarksCell()
Map has a public method to modify itself, that's setMarksCell.
At the same time, Game allows its own map to be retrieved.
Which means that any caller can
$game->getMap()->setMarksCell()
and corrupt the Map.