diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-07-19 16:44:58 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-07-19 16:47:25 -0300 |
| commit | 7b9e7dbbcf1d779419be8f22df812ff523a25450 (patch) | |
| tree | 1ecfaf7f24c59b373b03609598c7203161ffbc8c /src/crnonpl.cc | |
| parent | d359c0af4874534efa810729d47f610a29687e93 (diff) | |
| download | game-7b9e7dbbcf1d779419be8f22df812ff523a25450.tar.gz game-7b9e7dbbcf1d779419be8f22df812ff523a25450.zip | |
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.
Diffstat (limited to 'src/crnonpl.cc')
| -rw-r--r-- | src/crnonpl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
