shithub: cstory

Download patch

ref: bd6f2fe81ded827b26bc3efe6b0b001f8e158ebb
parent: 34bee5073f013db3b861bcb4596c5394d181dd0a
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jan 7 01:25:12 EST 2020

More-accurate GenericLoad.cpp variable arrangement

--- a/src/GenericLoad.cpp
+++ b/src/GenericLoad.cpp
@@ -155,9 +155,8 @@
 
 BOOL LoadGenericData(void)
 {
-	char str[0x40];
-	BOOL bError;
 	int pt_size;
+	BOOL bError;
 
 	MakeSurface_Resource("PIXEL", SURFACE_ID_PIXEL);
 
@@ -293,6 +292,8 @@
 	pt_size += MakePixToneObject(&gPtpTable[136], 1, 3);
 	pt_size += MakePixToneObject(&gPtpTable[137], 1, 6);
 	pt_size += MakePixToneObject(&gPtpTable[138], 1, 7);
+
+	char str[0x40];
 	sprintf(str, "PixTone = %d byte", pt_size);
 	// There must have been some kind of console print function here or something
 	return TRUE;