I am getting the above error, and I’m thoroughly confused by it. I only get it when I change floors, and if there is no action detected, it is supposed to return null.
When the game first starts, the map is generated procedurally and this error doesn’t occur. But when I shift to the next floor, this error occurs after generating the new floor.
I had recently rebuilt my Tile management system, and so this error didn’t occur in the old Tile management system, but it does now, and I don’t understand the error or how to fix it.
MPDT.Player has been freed, guessing changing floors changes the scene and/or deletes everything. You probably want to test if the player is valid before doing this, or pause this function when the game changes scene.