From 844d8012598bf1f43b7eff4c8d7b9a7be9287b18 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 18 May 2015 18:30:31 -0400 Subject: SHERLOCK: Syntactic fixes --- engines/sherlock/inventory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/sherlock/inventory.cpp') diff --git a/engines/sherlock/inventory.cpp b/engines/sherlock/inventory.cpp index 5b548bb9e3..b7d973e289 100644 --- a/engines/sherlock/inventory.cpp +++ b/engines/sherlock/inventory.cpp @@ -136,7 +136,8 @@ int Inventory::findInv(const Common::String &name) { return idx; } - return 1; + // Couldn't find the desired item + error("Couldn't find inventory item - %s", name.c_str()); } /** -- cgit v1.2.3