1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

fixed bug introduced in last CAddInfo fix

This commit is contained in:
Henning Koehler 2018-03-20 12:58:02 +13:00
parent df0aa2f69c
commit 591928fc4b

View File

@ -180,7 +180,7 @@ bool CAddInfo::operator!=(si32 value) const
si32 & CAddInfo::operator[](size_type pos)
{
if(pos <= size())
if(pos >= size())
resize(pos + 1, CAddInfo::NONE);
return vector::operator[](pos);
}