From bc20a1539ac9db480a7511736a4cf327b2968544 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 12 Oct 2006 15:38:37 +0000 Subject: (svn r6759) -Codechange: Remove the brainheaded usage of STR_JUST_STRING to pass a StringID --- train_gui.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'train_gui.c') diff --git a/train_gui.c b/train_gui.c index 7ae1a3bbe..eb919b25e 100644 --- a/train_gui.c +++ b/train_gui.c @@ -132,18 +132,16 @@ static int CDECL TrainEngineNameSorter(const void *a, const void *b) { const EngineID va = *(const EngineID*)a; const EngineID vb = *(const EngineID*)b; - char buf1[64] = "\0"; + char buf1[64]; int r; - SetDParam(0, GetCustomEngineName(va)); - GetString(buf1, STR_JUST_STRING); + GetString(buf1, GetCustomEngineName(va)); if (vb != _last_engine) { _last_engine = vb; _bufcache[0] = '\0'; - SetDParam(0, GetCustomEngineName(vb)); - GetString(_bufcache, STR_JUST_STRING); + GetString(_bufcache, GetCustomEngineName(vb)); } r = strcmp(buf1, _bufcache); // sort by name -- cgit v1.2.3-54-g00ecf