Fix sloppy sanity check for mobility going negative in transport
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 31 Dec 2009 10:27:48 +0000 (11:27 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:37:05 +0000 (08:37 +0100)
commitda48ba6d13262ffd3262239eb6f1d75b468bac90
tree9c8b7b1020b2be92cff573954463bc0d0328164d
parent2fa5f652572c4f45c2c60ea97d79f01851f8d548
Fix sloppy sanity check for mobility going negative in transport

Assignment to sct_mobil was vulnerable to integer underflow.  Should
not happen, as move_ground() never returns a cost exceeding available
mobility.
src/lib/commands/tran.c