DEADSOFTWARE

g_triggers.pas: fixed "Warning: Function result variable does not seem to initialized"
[d2df-sdl.git] / src / game / g_triggers.pas
index 278e92a8c609e42e7af63ffea6cd3e7bf1b1672c..5283e7008751eee7805ac02aca4c6eff48534159 100644 (file)
@@ -13,7 +13,7 @@
  * You should have received a copy of the GNU General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  *)
-{$INCLUDE g_amodes.inc}
+{$INCLUDE ../shared/a_modes.inc}
 unit g_triggers;
 
 interface
@@ -926,6 +926,7 @@ end;
 
 function tr_ShotAimCheck(var Trigger: TTrigger; Obj: PObj): Boolean;
 begin
+  result := false;
   with Trigger do
   begin
     if TriggerType <> TRIGGER_SHOT then