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:
parent
df0aa2f69c
commit
591928fc4b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user