uint32_t CommandCargoTransMsg::execute(){ cerr<<"execute CommandCargoTransMsg"<<endl; Processable *tproc = _processor->getLocalProcssable(_toShipId); if (!tproc) return COMMAND_FINAL; SUnit* unit = tproc->isUnit(); if (!unit) return COMMAND_FINAL; if(!itemlist[_itemType]) return COMMAND_FINAL; unit->getsubable()->getCargoBay()->AddReturn(itemlist[_itemType],_quan); return COMMAND_FINAL; }