Fix: CmdRemoveRoadStop didn't validate the height property properly (#9945)
Height was a unsigned 32bit integer, where TileAddWrap uses a signed 32bit integer for the height. In result, there was an implicit cast from unsigned to signed, messing things up. But looking at it from a functional perspective, allowing such large values is not sensible. In fact, width is restricted to just a 8bit integer. By changing height to a 8bit integer too, the implicit cast will never make a positive value negative anymore.pull/428/head
parent
9957675a66
commit
100aca1848
Loading…
Reference in New Issue