mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-09 12:22:51 +00:00
TITANIC: Fix crash using television channel buttons
This commit is contained in:
parent
8b282eff6c
commit
de9e2499ae
@ -749,13 +749,13 @@ int CGameObject::playSound(const CString &name, CProximity &prox) {
|
||||
}
|
||||
|
||||
CGameManager *gameManager = getGameManager();
|
||||
if (gameManager) {
|
||||
if (gameManager && !name.empty()) {
|
||||
g_vm->_filesManager->preload(name);
|
||||
|
||||
gameManager->_sound.playSound(name, prox);
|
||||
}
|
||||
|
||||
return 0;
|
||||
return -1;
|
||||
}
|
||||
|
||||
int CGameObject::queueSound(const CString &name, uint priorHandle, uint volume, int balance, bool repeated) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user