1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Hack-fixed icon position

This commit is contained in:
AlexVinS 2017-07-03 22:01:03 +03:00
parent 6dd89efc9a
commit dfbc9cea8a

View File

@ -1218,7 +1218,13 @@ void CPlayerInterface::showMapObjectSelectDialog(QueryID askID, const Component
for(auto item : objects)
tempList.push_back(item.getNum());
CObjectListWindow * wnd = new CObjectListWindow(tempList, icon, localTitle, localDescription, selectCallback);
CComponent * localIconC = new CComponent(icon);
CIntObject * localIcon = localIconC->image;
localIconC->removeChild(localIcon, false);
delete localIconC;
CObjectListWindow * wnd = new CObjectListWindow(tempList, localIcon, localTitle, localDescription, selectCallback);
wnd->onExit = cancelCallback;
GH.pushInt(wnd);
}