The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: HaydenRead on January 17, 2016, 05:19:37 AM

Title: [r7640] SQAPI: halt_x.is_connected
Post by: HaydenRead on January 17, 2016, 05:19:37 AM
halt_x.is_connected always returns 0
This is because it first checks if (halt.is_bound()) and returns 0, then checks in the function that is called if (!halt.is_bound()) and returns 0

The patch changes the first check to also be !halt.is_bound()
Title: Re: [r7640] SQAPI: halt_x.is_connected
Post by: Dwachs on January 17, 2016, 01:38:09 PM
thank you for spotting this (admittingly stupid) error, in r7743