aboutsummaryrefslogtreecommitdiff
path: root/games/devilutionX/files/patch-Source_sound.h
blob: c392962bd8dced7ec95339071c162f90cd5cd837 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Source/sound.h.orig	2022-05-17 15:57:06 UTC
+++ Source/sound.h
@@ -60,7 +60,11 @@ struct TSnd {
 };
 
 extern bool gbSndInited;
+#ifndef NOSOUND
 extern _music_id sgnMusicTrack;
+#else
+inline const _music_id sgnMusicTrack = NUM_MUSIC;
+#endif
 
 void ClearDuplicateSounds();
 void snd_stop_snd(TSnd *pSnd);