Fixed potential buffer overflow found by Rich
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
namespace CaveGame::Core
|
||||
{
|
||||
std::array<Tile*, 65535> registered_tiles{};
|
||||
std::array<Tile*, 65536> registered_tiles{};
|
||||
|
||||
|
||||
void Tile::DecayTo(ITileMap *world, TileState state, int x, int y, TileID TDecaysTo) {
|
||||
|
Reference in New Issue
Block a user