Browse Source

Fix checking cursor target

This causes a crashes when compiled a debug build with Clang
pull/137/head
Anders Jenbo 7 years ago
parent
commit
d82ff771f4
  1. 2
      Source/cursor.cpp

2
Source/cursor.cpp

@ -446,7 +446,7 @@ void CheckCursMove()
cursmx = mx + 1; cursmx = mx + 1;
cursmy = my + 1; cursmy = my + 1;
} }
if (!towner[pcursmonst]._tSelFlag) { /// BUGFIX: Add check 'pcursmonst != -1' if (pcursmonst != -1 && !towner[pcursmonst]._tSelFlag) {
pcursmonst = -1; pcursmonst = -1;
} }
} }

Loading…
Cancel
Save