mirror of https://github.com/bjornbytes/lovr.git
Fix backwards type errors;
This commit is contained in:
parent
d28d96008c
commit
2c979b1d9d
|
@ -108,7 +108,7 @@ int luax_typeerror(lua_State* L, int index, const char* expected) {
|
||||||
} else {
|
} else {
|
||||||
name = luaL_typename(L, index);
|
name = luaL_typename(L, index);
|
||||||
}
|
}
|
||||||
const char* message = lua_pushfstring(L, "%s expected, got %s", name, expected);
|
const char* message = lua_pushfstring(L, "%s expected, got %s", expected, name);
|
||||||
return luaL_argerror(L, index, message);
|
return luaL_argerror(L, index, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue