summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-30 18:40:52 +0000
committercelestar <celestar@openttd.org>2005-01-30 18:40:52 +0000
commite3287ad30336955b4d84c8fa55002a4e6cb30e1d (patch)
tree3d59dee55b7ddc7e9456def14e40ce2d2b2d381f
parent7526afdae028e4b3fb412ff86d0d172ea7193396 (diff)
downloadopenttd-e3287ad30336955b4d84c8fa55002a4e6cb30e1d.tar.xz
(svn r1738) -Fix: [ 1108735 ] Fixed (hopefully) an assertion that was cause by selling carriages in a MP game faster than the network can handle. (Truelight)
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index bc9ef02b8..0b632029b 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -873,7 +873,7 @@ int32 CmdSellRailWagon(int x, int y, uint32 flags, uint32 p1, uint32 p2)
v = GetVehicle(p1);
- if (!CheckOwnership(v->owner))
+ if (v->type == 0 || !CheckOwnership(v->owner))
return CMD_ERROR;
// get first vehicle in chain