Improve luax_readquat(nil);

This commit is contained in:
bjorn 2019-11-28 15:26:52 -08:00
parent 898a3f9f35
commit ad5389b1f4
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ int luax_readquat(lua_State* L, int index, quat q, const char* expected) {
switch (lua_type(L, index)) {
case LUA_TNIL:
case LUA_TNONE:
quat_set(q, 0, 0, 0, 0);
quat_set(q, 0.f, 0.f, 0.f, 1.f);
return ++index;
case LUA_TNUMBER:
angle = luax_optfloat(L, index++, 0.f);