diff --git a/hch/CObjectHandler.cpp b/hch/CObjectHandler.cpp index 95b755375..e89f63857 100644 --- a/hch/CObjectHandler.cpp +++ b/hch/CObjectHandler.cpp @@ -3862,7 +3862,7 @@ void CBank::fightGuards (const CGHeroInstance * h, ui32 accept) const { case 1: for (int i = 1; i <= 5; i++) - ourArmy.setCreature (i, bc->guards[1].first + upgraded, bc->guards[1].second / 5 ); + ourArmy.setCreature (i, bc->guards[0].first + upgraded, bc->guards[0].second / 5 ); break; case 4: { diff --git a/int3.h b/int3.h index 21bc7e45e..608f36628 100644 --- a/int3.h +++ b/int3.h @@ -22,7 +22,7 @@ public: bool formation; //false - wide, true - tight bool setCreature (si32 slot, ui32 type, si32 quantity) //slots 1 to 7 { - slots.find(slot)->second = std::pair(type, quantity); //brutal force + slots[slot] = std::pair(type, quantity); //brutal force if (slots.size() > 7) return false; else return true; }