From 45dcd95f2055d186b0ee76fa8c18df19b79690ef Mon Sep 17 00:00:00 2001 From: Konstantin Date: Sat, 11 Mar 2023 21:21:34 +0300 Subject: [PATCH] miscObjects: fix whirpool display It should display negative numbers, not positive --- lib/mapObjects/MiscObjects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mapObjects/MiscObjects.cpp b/lib/mapObjects/MiscObjects.cpp index 59a2a7ab3..783f3e696 100644 --- a/lib/mapObjects/MiscObjects.cpp +++ b/lib/mapObjects/MiscObjects.cpp @@ -1217,7 +1217,7 @@ void CGWhirlpool::onHeroVisit( const CGHeroInstance * h ) const iw.type = EInfoWindowMode::AUTO; iw.player = h->tempOwner; iw.text.addTxt(MetaString::ADVOB_TXT, 168); - iw.components.emplace_back(CStackBasicDescriptor(h->getCreature(targetstack), countToTake)); + iw.components.emplace_back(CStackBasicDescriptor(h->getCreature(targetstack), -countToTake)); cb->showInfoDialog(&iw); cb->changeStackCount(StackLocation(h, targetstack), -countToTake); }