game: fix crash on exiting the auction items screen

This commit is contained in:
Crypto City 2021-11-29 06:59:40 +00:00
parent 97f3387933
commit c503fc60b3

View File

@ -2978,6 +2978,9 @@ void UIUrho3D::HandleNewAuctionItem(StringHash eventType, VariantMap& eventData)
newEventData[NewAuctionItem::P_ITEMS] = (void*)v;
SendEvent(E_CRYPTOCITY_NEW_AUCTION_ITEM, newEventData);
});
SubscribeToEvent(auctionItemsDialog, E_AUCTION_ITEMS_CLOSED, [this](StringHash eventType, VariantMap& eventData) {
auctionItemsDialog = NULL;
});
SendTutorialTrigger("screen-auction-items");
}