hopefully last bugfix for new reserved morph space feature.

This commit is contained in:
Titus Tscharntke 2012-09-21 00:21:23 +00:00
parent 2c9e0d9e7d
commit 00c9a4c15c

View File

@ -2952,7 +2952,8 @@ CommandResult Unit::undoCommand(Command *command){
throw megaglest_runtime_error(szBuf);
}
if(getCurrCommand() == command && this->currSkill->getClass() == scMorph ){
if(getCurrCommand() == command && command->getCommandType()->getClass()==ccMorph
&& this->currSkill->getClass() == scMorph ){
// clear cells of morphed unit and set those of current unit!
map->clearUnitCells(this, this->getPos());
map->putUnitCells(this, this->getPos(),true);