Skip to content

Commit

Permalink
Fix obj_can_see_obj not working in release build (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonilyan committed Feb 15, 2024
1 parent caea9cb commit 16b044a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpreter_extra.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1799,7 +1799,7 @@ static void opObjectCanSeeObject(Program* program)
if (object2->elevation == object1->elevation) {
if (object2->tile != -1 && object1->tile != -1) {
if (isWithinPerception(object1, object2)) {
Object* obstacle;
Object* obstacle = nullptr;
_make_straight_path(object1, object1->tile, object2->tile, nullptr, &obstacle, 16);
if (obstacle == object2) {
canSee = true;
Expand Down

0 comments on commit 16b044a

Please sign in to comment.