icculus / mojoAL

An SDL2-based implementation of OpenAL in a single C file.
https://icculus.org/mojoAL/
zlib License
158 stars 21 forks source link

Fix source_get_offset() null-pointer access #10

Closed ivan-mogilko closed 2 years ago

ivan-mogilko commented 2 years ago

This fixes a case when AL_**_OFFSET parameters are retrieved from a Source which has no buffers attached yet.

Fixes #9