diff --git a/src/cargopacket.cpp b/src/cargopacket.cpp index 12e7dde29a..6c93fc1c9e 100644 --- a/src/cargopacket.cpp +++ b/src/cargopacket.cpp @@ -171,7 +171,7 @@ void CargoList::Truncate(uint max_remaining) template template -bool CargoList::MoveTo(Tother_inst *dest, uint max_move, CargoList::MoveToAction mta, CargoPayment *payment, uint data) +bool CargoList::MoveTo(Tother_inst *dest, uint max_move, MoveToAction mta, CargoPayment *payment, uint data) { assert(mta == MTA_FINAL_DELIVERY || dest != NULL); assert(mta == MTA_UNLOAD || mta == MTA_CARGO_LOAD || payment != NULL); diff --git a/src/cargopacket.h b/src/cargopacket.h index 471f7a7d0b..2d5c824e99 100644 --- a/src/cargopacket.h +++ b/src/cargopacket.h @@ -316,7 +316,7 @@ public: * @return true if there are still packets that might be moved from this cargo list */ template - bool MoveTo(Tother_inst *dest, uint count, CargoList::MoveToAction mta, CargoPayment *payment, uint data = 0); + bool MoveTo(Tother_inst *dest, uint count, MoveToAction mta, CargoPayment *payment, uint data = 0); /** Invalidates the cached data and rebuild it */ void InvalidateCache();