diff options
author | rubidium <rubidium@openttd.org> | 2009-10-06 17:23:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-10-06 17:23:15 +0000 |
commit | 5f59d0c5b4e85a3bb51936fa05b2c5493f571eca (patch) | |
tree | ca2af53f7c2c4af662725813b62d480a3748954d /src/economy_base.h | |
parent | a4835e3f0b8c0d4f330fc8e91bdd529af60cc7a3 (diff) | |
download | openttd-5f59d0c5b4e85a3bb51936fa05b2c5493f571eca.tar.xz |
(svn r17720) -Codechange: guard the CargoPacket variables that are cached in CargoLists so they cannot be written from outside the CargoList class (based on patch by fonsinchen)
Diffstat (limited to 'src/economy_base.h')
-rw-r--r-- | src/economy_base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy_base.h b/src/economy_base.h index 9f929f449..7d447b23c 100644 --- a/src/economy_base.h +++ b/src/economy_base.h @@ -39,8 +39,8 @@ struct CargoPayment : CargoPaymentPool::PoolItem<&_cargo_payment_pool> { CargoPayment(Vehicle *front); ~CargoPayment(); - void PayTransfer(CargoPacket *cp, uint count); - void PayFinalDelivery(CargoPacket *cp, uint count); + Money PayTransfer(const CargoPacket *cp, uint count); + void PayFinalDelivery(const CargoPacket *cp, uint count); /** * Sets the currently handled cargo type. |