aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 53aaba3b..15957232 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -1025,7 +1025,7 @@ another_source:
if(BufferListItem->next)
{
ALbuffer *NextBuf = BufferListItem->next->buffer;
- if(NextBuf && NextBuf->data)
+ if(NextBuf && NextBuf->size)
{
ALint ulExtraSamples = BUFFER_PADDING*Channels*Bytes;
ulExtraSamples = min(NextBuf->size, ulExtraSamples);
@@ -1035,7 +1035,7 @@ another_source:
else if(ALSource->bLooping)
{
ALbuffer *NextBuf = ALSource->queue->buffer;
- if(NextBuf && NextBuf->data)
+ if(NextBuf && NextBuf->size)
{
ALint ulExtraSamples = BUFFER_PADDING*Channels*Bytes;
ulExtraSamples = min(NextBuf->size, ulExtraSamples);