From 50aa3dce0d4fce26318376eb81b846168f5b1af6 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 2 Jul 2021 21:01:10 +0200 Subject: [PATCH] Fix GCC warning in inv.cpp --- Source/inv.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/inv.cpp b/Source/inv.cpp index e2e1ec6da..e625789e3 100644 --- a/Source/inv.cpp +++ b/Source/inv.cpp @@ -943,6 +943,8 @@ void CheckInvPaste(int pnum, Point cursorPosition) return INVLOC_AMULET; case ILOC_ARMOR: return INVLOC_CHEST; + default: + app_fatal("Unexpected equipment type"); } }; inv_body_loc slot = iLocToInvLoc(il);