shithub: cstory

Download patch

ref: e8edc42d076ab7389ca67f70a16e17ff7531252d
parent: 1fe73f9aab36aa9679f35ccd0f5cc062d5b4d557
parent: 4091d152eea6738610306f19e8b389cb83ecf470
author: Clownacy <[email protected]>
date: Wed Jan 22 20:37:03 EST 2020

Merge branch 'accurate' into portable

--- a/src/Organya.cpp
+++ b/src/Organya.cpp
@@ -455,7 +455,11 @@
 		for (i = 0; i < MAXMELODY; i++)
 		{
 			info.tdata[i].freq = mi->tdata[i].freq;
-			info.tdata[i].pipi = info.tdata[i].pipi;	// info.tdata[i].pipi is assigned to itself. Thanks, Pixel. (Most likely, the original code wasn't written the exact same way)
+		#ifdef FIX_BUGS
+			info.tdata[i].pipi = mi->tdata[i].pipi;
+		#else
+			info.tdata[i].pipi = info.tdata[i].pipi;	 // Just sets info.tdata[i].pipi to itself
+		#endif
 		}
 	}
 
@@ -488,11 +492,11 @@
 				if (info.tdata[i].note_p != NULL)
 				{
 					free(info.tdata[i].note_p);
-#ifdef FIX_BUGS
+				#ifdef FIX_BUGS
 					info.tdata[i].note_p = NULL;
-#else
+				#else
 					info.tdata[j].note_p = NULL;	// Uses j instead of i
-#endif
+				#endif
 				}
 			}