Fix steal-item dialog breaking get-items modal status

This commit is contained in:
2025-03-15 14:57:28 -05:00
committed by Celtic Minstrel
parent 6f14c01487
commit 079e3d721f

View File

@@ -463,7 +463,7 @@ static bool display_item_event_filter(cDialog& me, std::string id, size_t& first
item = *item_array[item_hit]; item = *item_array[item_hit];
if(item.property) { if(item.property) {
if(!me.getResult<bool>()) { if(!me.getResult<bool>()) {
std::string choice = cChoiceDlog("steal-item",{"steal","leave"}).show(); std::string choice = cChoiceDlog("steal-item",{"steal","leave"}, &me).show();
if(choice == "leave") return true; if(choice == "leave") return true;
me.setResult(true); me.setResult(true);
} }