train_gui.c
changeset 4835 c885511caff1
parent 4813 96eb742c98a0
child 4836 aee98c87c756
--- a/train_gui.c	Thu Oct 12 15:13:40 2006 +0000
+++ b/train_gui.c	Thu Oct 12 15:38:37 2006 +0000
@@ -132,18 +132,16 @@
 {
 	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