(svn r2474) - Fix: [newgrf] Some road vehicle action 0 properties were loaded as the wrong type (int8,int16,int32) causing undefined results. (like cargo types being wrong)

This commit is contained in:
hackykid 2005-06-23 01:26:54 +00:00
parent 7549cb5271
commit 7b0c767238
1 changed files with 11 additions and 11 deletions

View File

@ -427,7 +427,7 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
case 0x0A: { /* Running cost base */
/* TODO: I have no idea. --pasky */
FOR_EACH_OBJECT {
grf_load_byte(&buf);
grf_load_dword(&buf);
}
ret = true;
} break;
@ -448,7 +448,7 @@ static bool RoadVehicleChangeInfo(uint engine, int numinfo, int prop, byte **buf
} break;
case 0x0F: { /* Cargo capacity */
FOR_EACH_OBJECT {
uint16 capacity = grf_load_word(&buf);
uint16 capacity = grf_load_byte(&buf);
rvi[i].capacity = capacity;
}