From 53e9cb3ca5ebb4cab21a2deb2410dedc03642b40 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 29 Jun 2018 12:29:23 +0200 Subject: [PATCH] fixed a crash introduced in 10.4h --- game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.cpp b/game.cpp index 731a0911..a4ce4d25 100644 --- a/game.cpp +++ b/game.cpp @@ -4615,7 +4615,7 @@ void groupmove(eMonster movtype, flagtype mf) { if((mf & MF_ONLYEAGLE) && c->monst != moEagle && c->monst != moBat) return; if(movegroup(c->monst) == movtype && c->pathdist != 0) { cell *c2 = moveNormal(c, mf); - onpath(c2, 0); + if(c2) onpath(c2, 0); } } }