mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Merge branch 'master' of https://github.com/elunaluaengine/eluna
This commit is contained in:
@@ -501,7 +501,7 @@ static uint32 CheckUnsignedRange(lua_State *L, int narg, uint32 max)
|
|||||||
|
|
||||||
template<> bool Eluna::CHECKVAL<bool>(lua_State* L, int narg)
|
template<> bool Eluna::CHECKVAL<bool>(lua_State* L, int narg)
|
||||||
{
|
{
|
||||||
return lua_toboolean(L, narg);
|
return lua_toboolean(L, narg) != 0;
|
||||||
}
|
}
|
||||||
template<> float Eluna::CHECKVAL<float>(lua_State* L, int narg)
|
template<> float Eluna::CHECKVAL<float>(lua_State* L, int narg)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user