From 43f26084d0d464228cc640fb77c949512a96eb3d Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Mon, 24 May 2021 05:02:37 +0200 Subject: [PATCH] Fix warnigns --- Source/engine.h | 2 +- Source/monster.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/engine.h b/Source/engine.h index ea7fb2eef..98f7de157 100644 --- a/Source/engine.h +++ b/Source/engine.h @@ -111,7 +111,7 @@ struct Point { return { 1, -1 }; case DIR_SE: return { 1, 0 }; - case DIR_OMNI: + default: return { 0, 0 }; } }; diff --git a/Source/monster.cpp b/Source/monster.cpp index 451aae350..bf9b011f5 100644 --- a/Source/monster.cpp +++ b/Source/monster.cpp @@ -1238,7 +1238,7 @@ int AddMonster(int x, int y, Direction dir, int mtype, bool InMap) void monster_43C785(int i) { - int d, j, oi, mx, my; + int d, j, oi; Point position = {}; if (monster[i].MType) {