Unverified Commit 670f2f24 authored by Jake Stine's avatar Jake Stine Committed by GitHub
Browse files

Fix the on-purpose audio test error being reported as a segfault. (#208)

parent 635b21be
......@@ -668,7 +668,9 @@ int audio_play(lua_State *L)
if (!sourceIsPlayable(self))
{
lutro_alertf("Audio source is not playable.", self->state);
lutro_errorf("Audio source is not playable.", self->state);
self->state = AUDIO_STOPPED;
return 0;
}
if (self->state == AUDIO_PAUSED)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment