fix wrong assert

This commit is contained in:
Tim Felgentreff 2022-03-06 14:25:25 +01:00
parent b154e98a16
commit 4f6095ae0b

View file

@ -84,7 +84,7 @@ public:
{
std::vector<CUnit *>::iterator it = find(units.begin(), units.end(), &unit);
Assert(it == units.end());
Assert(it != units.end());
*it = units.back();
units.pop_back();