Fixed error messages in Shader:send and love.math.newRandomGenerator to include the line number

This commit is contained in:
Alex Szpakowski
2013-11-04 15:03:45 -04:00
parent b8a69ab2b6
commit 83d3eae1e7
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ int w_newRandomGenerator(lua_State *L)
}
if (should_error)
return lua_error(L);
return luaL_error(L, "%s", lua_tostring(L, -1));
}
luax_pushtype(L, "RandomGenerator", MATH_RANDOM_GENERATOR_T, t);