mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 10:29:10 +00:00
(svn r7178) -Fix: forgotten pointer dereferences (Bjarni, Bjarni, Bjarni, ...)
This commit is contained in:
@@ -412,8 +412,8 @@ static void GenerateBuildList(EngineID **engines, uint16 *num_engines, EngineID
|
|||||||
(*num_engines) = 0;
|
(*num_engines) = 0;
|
||||||
(*num_wagons) = 0;
|
(*num_wagons) = 0;
|
||||||
|
|
||||||
if (engines == NULL) ExtendEngineListSize((const EngineID**)engines, &engine_length, 25);
|
if (*engines == NULL) ExtendEngineListSize((const EngineID**)engines, &engine_length, 25);
|
||||||
if (wagons == NULL) ExtendEngineListSize((const EngineID**)wagons, &wagon_length, 25);
|
if (*wagons == NULL) ExtendEngineListSize((const EngineID**)wagons, &wagon_length, 25);
|
||||||
|
|
||||||
for (j = 0; j < NUM_TRAIN_ENGINES; j++) {
|
for (j = 0; j < NUM_TRAIN_ENGINES; j++) {
|
||||||
EngineID i = GetRailVehAtPosition(j); // XXX Can be removed when the wagon list is also sorted.
|
EngineID i = GetRailVehAtPosition(j); // XXX Can be removed when the wagon list is also sorted.
|
||||||
|
Reference in New Issue
Block a user