From 7b9e7dbbcf1d779419be8f22df812ff523a25450 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sat, 19 Jul 2025 16:44:58 -0300 Subject: fix some critical bugs Aside from obvious gameplay bugs pretty much everywhere, the game is finally in a PLAYABLE state. It should be smooth sailing to get it stable for an initial test server. --- src/crnonpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/crnonpl.cc') diff --git a/src/crnonpl.cc b/src/crnonpl.cc index b841d18..2e56f66 100644 --- a/src/crnonpl.cc +++ b/src/crnonpl.cc @@ -2146,7 +2146,7 @@ bool TMonster::MovePossible(int x, int y, int z, bool Execute, bool Jump){ // objects away. for(int Attempt = 0; Attempt < 100; Attempt += 1){ Object Obj = GetFirstObject(x, y, z); - if(!Obj.getObjectType().getFlag(BANK)){ + if(Obj == NONE || !Obj.getObjectType().getFlag(BANK)){ return false; } -- cgit v1.2.3