From 0bb34130c3adc91dd857384953cc05606230e057 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Wed, 24 Jun 2015 11:33:21 -0400 Subject: [PATCH] Fix town not getting angry if you steal something --- src/boe.items.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/boe.items.cpp b/src/boe.items.cpp index ebeac447..7c2c3e1b 100644 --- a/src/boe.items.cpp +++ b/src/boe.items.cpp @@ -482,7 +482,7 @@ static bool display_item_event_filter(cDialog& me, std::string id, size_t& first if(item_hit >= item_array.size()) return true; item = *item_array[item_hit]; if(item.property) { - if(me.getResult()) { + if(!me.getResult()) { std::string choice = cChoiceDlog("steal-item",{"steal","leave"}).show(); if(choice == "leave") return true; me.setResult(true); @@ -596,6 +596,7 @@ bool show_get_items(std::string titleText, std::vector& itemRefs, short void (*give_help)(short,short,cDialog&) = ::give_help; + itemDialog.setResult(false); // The result is set to true if the player steals something itemDialog.run(std::bind(give_help, 36, 37, _1)); return itemDialog.getResult();