mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r769) Fixed a tiny mistake in the _userstring boundary check. Let's hope I got it right this time.
This commit is contained in:
parent
bf587e9aac
commit
4beb4ae2bc
|
@ -375,7 +375,7 @@ static void DrawStationViewWindow(Window *w)
|
||||||
b += 3;
|
b += 3;
|
||||||
|
|
||||||
for(i=0; i!=NUM_CARGO; i++) {
|
for(i=0; i!=NUM_CARGO; i++) {
|
||||||
if (b + 5 > USERSTRING_LEN - 1)
|
if ((b - (byte *) &_userstring) + 5 > USERSTRING_LEN - 1)
|
||||||
break;
|
break;
|
||||||
if (st->goods[i].waiting_acceptance & 0x8000) {
|
if (st->goods[i].waiting_acceptance & 0x8000) {
|
||||||
b[0] = 0x81;
|
b[0] = 0x81;
|
||||||
|
|
Loading…
Reference in New Issue