From 598f1d41f902f32ba48540565d08445ad763cebc Mon Sep 17 00:00:00 2001 From: mcmartin Date: Mon, 16 Feb 2009 01:57:52 +0000 Subject: [PATCH] Fixes for building on MSVS 2005 - these should also suffice for MSVC6. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3110 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/doc/devel/versions | 1 + sc2/src/sc2code/libs/resource/resinit.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sc2/doc/devel/versions b/sc2/doc/devel/versions index f35792fbd..ccb0bd8ba 100644 --- a/sc2/doc/devel/versions +++ b/sc2/doc/devel/versions @@ -34,3 +34,4 @@ Version 0.6.1: Revision 2652 Version 0.6.2: Revision 2669 Version 0.6.3: Revision 2828 Version 0.6.4: Revision 2869 +Version 0.6.5: Revision 3110 diff --git a/sc2/src/sc2code/libs/resource/resinit.c b/sc2/src/sc2code/libs/resource/resinit.c index ad76b3b27..806c9c220 100644 --- a/sc2/src/sc2code/libs/resource/resinit.c +++ b/sc2/src/sc2code/libs/resource/resinit.c @@ -189,10 +189,11 @@ _set_current_index_header (RESOURCE_INDEX newResourceIndex) RESOURCE_INDEX InitResourceSystem (void) { + RESOURCE_INDEX ndx; if (curResourceIndex) { return curResourceIndex; } - RESOURCE_INDEX ndx = allocResourceIndex (); + ndx = allocResourceIndex (); _set_current_index_header (ndx);