mirror of
https://github.com/love2d/love.git
synced 2026-08-18 11:44:15 +02:00
Automatically deduce the type in luax_pushtype, if possible
--HG-- branch : dynamiccore2
This commit is contained in:
@@ -74,7 +74,7 @@ int w_Decoder_decode(lua_State *L)
|
||||
decoded / (t->getBitDepth() / 8 * t->getChannels()),
|
||||
t->getSampleRate(), t->getBitDepth(), t->getChannels());
|
||||
|
||||
luax_pushtype(L, SoundData::type, s);
|
||||
luax_pushtype(L, s);
|
||||
s->release();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user