summaryrefslogtreecommitdiff
path: root/src/i_oplmusic.c
diff options
context:
space:
mode:
authorSimon Howard2014-05-01 01:54:23 -0400
committerSimon Howard2014-05-01 01:54:23 -0400
commitca2a6aee59f8bf0960cca15e8f8d681f92bb1f11 (patch)
tree7f65cdd461ffc29bb200e19d8f4f304f198e27b8 /src/i_oplmusic.c
parentf1a5a3b9998128d855706dbf8a1a41c9175b43f3 (diff)
downloadchocolate-doom-ca2a6aee59f8bf0960cca15e8f8d681f92bb1f11.tar.gz
chocolate-doom-ca2a6aee59f8bf0960cca15e8f8d681f92bb1f11.tar.bz2
chocolate-doom-ca2a6aee59f8bf0960cca15e8f8d681f92bb1f11.zip
opl: Fix crash when using OPL music.
The previous change to add the poll method to the music module interface introduced a crash, as the OPL music struct does not define a poll method.
Diffstat (limited to 'src/i_oplmusic.c')
-rw-r--r--src/i_oplmusic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i_oplmusic.c b/src/i_oplmusic.c
index 142e401a..678b275f 100644
--- a/src/i_oplmusic.c
+++ b/src/i_oplmusic.c
@@ -1479,6 +1479,7 @@ music_module_t music_opl_module =
I_OPL_PlaySong,
I_OPL_StopSong,
I_OPL_MusicIsPlaying,
+ NULL, // Poll
};
//----------------------------------------------------------------------