fix: Morph Queue

This commit is contained in:
pavanvo 2022-09-05 19:23:53 +04:00
parent d2fbc3f857
commit 3e58c7d03d
No known key found for this signature in database
GPG Key ID: 34C1C36681B4AD84
1 changed files with 2 additions and 1 deletions

View File

@ -994,7 +994,8 @@ Command* Commander::buildCommand(const NetworkCommand* networkCommand) const {
const UnitType* unitType= world->findUnitTypeById(unit->getFaction()->getType(), networkCommand->getUnitTypeId());
if( networkCommand->getUnitTypeId() > -1 && networkCommand->getWantQueue()) { //Morph Queue
ct = unitType->findCommandTypeById(networkCommand->getCommandTypeId());
auto mct = unitType->findCommandTypeById(networkCommand->getCommandTypeId());
if(mct) ct = mct;
}
// debug test!