hopefully last bugfix for new reserved morph space feature.
This commit is contained in:
parent
2c9e0d9e7d
commit
00c9a4c15c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user