1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Fix check of 22 artifacts limit on Altar of Sacrifice

Partially fix for issue 558
This commit is contained in:
ArseniyShestakov 2014-12-25 06:17:26 +03:00
parent 5995c975d3
commit 3371cd36c9

View File

@ -1415,7 +1415,7 @@ int CAltarWindow::firstFreeSlot()
{
int ret = -1;
while(items[0][++ret]->id >= 0 && ret + 1 < items[0].size());
return ret < items[0].size() ? ret : -1;
return items[0][ret]->id == -1 ? ret : -1;
}
void CAltarWindow::SacrificeBackpack()