mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
Check for null pointer in soundReset().
Check that soundDriver is defined.
This commit is contained in:
committed by
Rafael Kitover
parent
9d1d707c01
commit
410ede543c
@@ -517,6 +517,8 @@ int soundGetEnable()
|
||||
|
||||
void soundReset()
|
||||
{
|
||||
if (!soundDriver)
|
||||
return;
|
||||
soundDriver->reset();
|
||||
|
||||
remake_stereo_buffer();
|
||||
|
Reference in New Issue
Block a user