mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-05 00:59:14 -04:00
Merge pull request #93 from TakaRikka/ira-crashfix1
JAUSoundTable-related crash fix
This commit is contained in:
@@ -15,6 +15,11 @@ void JAUSoundTable::init(void const* param_0) {
|
||||
}
|
||||
|
||||
u8 JAUSoundTable::getTypeID(JAISoundID param_0) const {
|
||||
#if DUSK_AUDIO_DISABLED
|
||||
if (this == NULL) {
|
||||
return 0xff;
|
||||
}
|
||||
#endif
|
||||
if (param_0.isAnonymous()) {
|
||||
return 0xff;
|
||||
}
|
||||
@@ -30,6 +35,11 @@ u8 JAUSoundTable::getTypeID(JAISoundID param_0) const {
|
||||
}
|
||||
|
||||
JAUSoundTableItem* JAUSoundTable::getData(JAISoundID param_0) const {
|
||||
#if DUSK_AUDIO_DISABLED
|
||||
if (this == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
if (param_0.isAnonymous()) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user