Fix possible seg fault in game_can_demolish_flag().

Since dir_t enum can be unsigned (depending on compiler) the loop could either be infinite or result in a seg fault.