Skip to content
Permalink
Browse files

Fixed #2012

  • Loading branch information
DjWarmonger committed Feb 14, 2015
1 parent 420e5f0 commit a8ff08a5622cf0735b1c044341e068775a64fbc3
Showing with 4 additions and 1 deletion.
  1. +4 −1 server/CGameHandler.cpp
@@ -2683,7 +2683,10 @@ bool CGameHandler::recruitCreatures(ObjectInstanceID objid, ObjectInstanceID dst
bool CGameHandler::upgradeCreature( ObjectInstanceID objid, SlotID pos, CreatureID upgID )
{
CArmedInstance *obj = static_cast<CArmedInstance*>(gs->getObjInstance(objid));
assert(obj->hasStackAtSlot(pos));
if (!obj->hasStackAtSlot(pos))
{
COMPLAIN_RET("Cannot upgrade, no stack at slot " + boost::to_string(pos));
}
UpgradeInfo ui = gs->getUpgradeInfo(obj->getStack(pos));
PlayerColor player = obj->tempOwner;
const PlayerState *p = getPlayer(player);

0 comments on commit a8ff08a

Please sign in to comment.
You can’t perform that action at this time.