fixed a crash bug with the 'mark' command when no cell active

This commit is contained in:
Zeno Rogue 2018-07-23 23:35:01 +02:00
parent c70db33417
commit e557dd1303
1 changed files with 1 additions and 0 deletions

View File

@ -8051,6 +8051,7 @@ bool mightBeMine(cell *c) {
hookset<bool(cell*)> *hooks_mark;
void performMarkCommand(cell *c) {
if(!c) return;
if(callhandlers(false, hooks_mark, c)) return;
if(c->land == laCA && c->wall == waNone)
c->wall = waFloorA;