summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/sn76496.c
diff options
context:
space:
mode:
author Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2009-11-18 08:56:19 +0000
committer Jonathan Gevaryahu <Lord-Nightmare@users.noreply.github.com>2009-11-18 08:56:19 +0000
commit2aa28ef3d954ddd31d03fa5755d4475be7261dc5 (patch)
tree6494f7c49ac5c900c77bf8f9fbc6074369b95702 /src/emu/sound/sn76496.c
parent2fb6585733c5172bf9b923c1267a1727e347c747 (diff)
fix crash bug
Diffstat (limited to 'src/emu/sound/sn76496.c')
-rw-r--r--src/emu/sound/sn76496.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/sound/sn76496.c b/src/emu/sound/sn76496.c
index 06f8d9ff7b8..ed17e66403c 100644
--- a/src/emu/sound/sn76496.c
+++ b/src/emu/sound/sn76496.c
@@ -215,7 +215,7 @@ static STREAM_UPDATE( SN76496Update )
int i;
sn76496_state *R = (sn76496_state *)param;
stream_sample_t *lbuffer = outputs[0];
- stream_sample_t *rbuffer = outputs[1];
+ stream_sample_t *rbuffer = (R->Stereo)?outputs[1]:NULL;
while (samples > 0)
{