diff options
author | Nipun Garg | 2019-06-20 20:23:22 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:52 +0200 |
commit | 1b25f846a17494e9e74c9a21657ed9652ce68990 (patch) | |
tree | f6b13c0e64674c5164862eb189a0400276d57958 /engines/hdb/ai-inventory.cpp | |
parent | ae876db69cc16ea961e5624ff4e3161b24e0fdc9 (diff) | |
download | scummvm-rg350-1b25f846a17494e9e74c9a21657ed9652ce68990.tar.gz scummvm-rg350-1b25f846a17494e9e74c9a21657ed9652ce68990.tar.bz2 scummvm-rg350-1b25f846a17494e9e74c9a21657ed9652ce68990.zip |
HDB: Fix switch-case warnings
Diffstat (limited to 'engines/hdb/ai-inventory.cpp')
-rw-r--r-- | engines/hdb/ai-inventory.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |