1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Fixed a few CWE-457

This commit is contained in:
AlexVinS
2016-11-27 19:00:16 +03:00
parent 27b853618c
commit 6196ae7fca
10 changed files with 26 additions and 40 deletions

View File

@@ -1771,11 +1771,10 @@ void CObjectListWindow::init(CIntObject * titlePic, std::string _title, std::str
if (titlePic)
{
titleImage = titlePic;
addChild(titleImage);
titleImage->recActions = defActions;
titleImage->pos.x = pos.w/2 + pos.x - titleImage->pos.w/2;
titleImage->pos.y =75 + pos.y - titleImage->pos.h/2;
addChild(titlePic);
titlePic->recActions = defActions;
titlePic->pos.x = pos.w/2 + pos.x - titlePic->pos.w/2;
titlePic->pos.y =75 + pos.y - titlePic->pos.h/2;
}
list = new CListBox(std::bind(&CObjectListWindow::genItem, this, _1), CListBox::DestroyFunc(),
Point(14, 151), Point(0, 25), 9, items.size(), 0, 1, Rect(262, -32, 256, 256) );