From 1b25f846a17494e9e74c9a21657ed9652ce68990 Mon Sep 17 00:00:00 2001 From: Nipun Garg Date: Thu, 20 Jun 2019 20:23:22 +0530 Subject: HDB: Fix switch-case warnings --- engines/hdb/ai-inventory.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engines/hdb/ai-inventory.cpp') diff --git a/engines/hdb/ai-inventory.cpp b/engines/hdb/ai-inventory.cpp index 5fcccf2a8f..d050b3cfaf 100644 --- a/engines/hdb/ai-inventory.cpp +++ b/engines/hdb/ai-inventory.cpp @@ -51,6 +51,9 @@ bool AI::addToInventory(AIEntity *e) { _numMonkeystones++; removeEntity(e); return true; + default: + warning("AI-INVENTORY: addToInventory: Unknown Type"); + return false; } if (_numInventory >= kMaxInventory) { @@ -67,6 +70,8 @@ bool AI::addToInventory(AIEntity *e) { case ITEM_ROBOSTUNNER: case ITEM_SLUGSLINGER: warning("STUB: addToInventory: Ready weapon"); + default: + warning("AI-INVENTORY: addToInventory: Unknown Type"); } warning("STUB: addToInventory: Print a 'You Got' message"); -- cgit v1.2.3