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
This commit is contained in:
mcmartin
2009-02-16 01:57:52 +00:00
parent 6f395c9ed0
commit 598f1d41f9
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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
+2 -1
View File
@@ -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);