shithub: cstory

Download patch

ref: 81641c82f310881a03469322e74dde4e63fcc5f4
parent: 04fca693ad466397f45a5f9e226ad1f7d345ffdb
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jul 7 22:37:19 EDT 2020

Fix InitSoundObject

--- a/src/Sound.cpp
+++ b/src/Sound.cpp
@@ -21,9 +21,9 @@
 
 #include "Backends/Audio.h"
 #include "Main.h"
-#include "Resource.h"
 #include "Organya.h"
 #include "PixTone.h"
+#include "Resource.h"
 
 BOOL audio_backend_initialised;
 AudioBackend_Sound *lpSECONDARYBUFFER[SE_MAX];
@@ -85,7 +85,7 @@
 		return TRUE;
 
 	// リソースの検索 (Search for resources)
-	resource_pointer = FindResource("WAVE100", "WAVE", NULL);
+	resource_pointer = FindResource(resname, "WAVE", NULL);
 
 	if (resource_pointer == NULL)
 		return FALSE;