From 16b044ae31b299db944e2f6b82aa7d72957aed41 Mon Sep 17 00:00:00 2001 From: sonilyan <286258386@qq.com> Date: Thu, 15 Feb 2024 10:04:57 +0800 Subject: [PATCH] Fix obj_can_see_obj not working in release build (#350) --- src/interpreter_extra.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interpreter_extra.cc b/src/interpreter_extra.cc index 3ae8326..124583b 100644 --- a/src/interpreter_extra.cc +++ b/src/interpreter_extra.cc @@ -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;