diff -r b36a754e4c21 -r d1d4452acbfc src/depot_gui.cpp --- a/src/depot_gui.cpp Tue Apr 29 18:19:29 2008 +0000 +++ b/src/depot_gui.cpp Tue Apr 29 21:31:29 2008 +0000 @@ -656,8 +656,9 @@ uint max_width = 0; uint max_height = 0; - EngineID eid; - FOR_ALL_ENGINEIDS_OF_TYPE(eid, type) { + const Engine *e; + FOR_ALL_ENGINES_OF_TYPE(e, type) { + EngineID eid = e->index; uint x, y; switch (type) {