Mercurial > hg > openttd
changeset 5106:8d7c32617551 draft
(svn r7178) -Fix: forgotten pointer dereferences (Bjarni, Bjarni, Bjarni, ...)
author | KUDr <KUDr@openttd.org> |
---|---|
date | Thu, 16 Nov 2006 20:52:39 +0000 |
parents | d058c60c98d7 |
children | a8092398ae33 |
files | train_gui.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/train_gui.c +++ b/train_gui.c @@ -412,8 +412,8 @@ (*num_engines) = 0; (*num_wagons) = 0; - if (engines == NULL) ExtendEngineListSize((const EngineID**)engines, &engine_length, 25); - if (wagons == NULL) ExtendEngineListSize((const EngineID**)wagons, &wagon_length, 25); + if (*engines == NULL) ExtendEngineListSize((const EngineID**)engines, &engine_length, 25); + if (*wagons == NULL) ExtendEngineListSize((const EngineID**)wagons, &wagon_length, 25); for (j = 0; j < NUM_TRAIN_ENGINES; j++) { EngineID i = GetRailVehAtPosition(j); // XXX Can be removed when the wagon list is also sorted.