From 39640017e644ed28c8e397f7e2bd8dd6657d35f9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Thu, 15 Mar 2018 20:52:36 -0400 Subject: XEEN: Don't needlessly show class profiency error dialogs when just viewing inventory --- engines/xeen/item.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/xeen/item.h') diff --git a/engines/xeen/item.h b/engines/xeen/item.h index e927908d01..871bd1c919 100644 --- a/engines/xeen/item.h +++ b/engines/xeen/item.h @@ -117,8 +117,10 @@ public: /** * Return whether a given item passes class-based usage restrictions + * @param itemId Item Index + * @param suppressError If true, no dialog is shown if the item doesn't pass restrictions */ - bool passRestrictions(int itemId, bool showError) const; + bool passRestrictions(int itemId, bool suppressError = false) const; /** * Return the bare name of a given inventory item -- cgit v1.2.3