From 39c55d0eb3345f2257d1e5ae81e3119de76d3ae6 Mon Sep 17 00:00:00 2001 From: celestar Date: Sun, 30 Jan 2005 18:40:52 +0000 Subject: [PATCH] (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) --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_cmd.c b/train_cmd.c index bc9ef02b8f..0b632029b6 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