From aa95a8010e7c1fdde1bab74cc25a81d48561a963 Mon Sep 17 00:00:00 2001 From: avolkov Date: Fri, 5 May 2006 23:47:30 +0000 Subject: [PATCH] Copy alist strings to the dst stringbank; fixes problems with uqm.cfg loading in release builds git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2356 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/resource/alist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/src/sc2code/libs/resource/alist.c b/sc2/src/sc2code/libs/resource/alist.c index 606f51bfb..04505be2c 100644 --- a/sc2/src/sc2code/libs/resource/alist.c +++ b/sc2/src/sc2code/libs/resource/alist.c @@ -97,7 +97,9 @@ Alist_PutAll (alist *dst, alist *src) { alist_entry *e = src->first; while (e) { - Alist_PutString (dst, e->key, e->value); + Alist_PutString (dst, + StringBank_AddOrFindString(dst->bank, e->key), + StringBank_AddOrFindString(dst->bank, e->value)); e = e->next; } }