webmcp

diff libraries/multirand/multirand.c @ 70:593413f317f4

Bugfix in Lua5.1 compatibility code: Wrong use of logic-or
author jbe
date Sat Apr 21 20:21:16 2012 +0200 (2012-04-21)
parents 3d43a5cf17c1
children 9d15451c340a
line diff
     1.1 --- a/libraries/multirand/multirand.c	Sat Apr 21 19:50:25 2012 +0200
     1.2 +++ b/libraries/multirand/multirand.c	Sat Apr 21 20:21:16 2012 +0200
     1.3 @@ -114,7 +114,7 @@
     1.4    lua_newtable(L);
     1.5    luaL_setfuncs(L, multirand_module_functions, 0);
     1.6  #else
     1.7 -  luaL_register(L, lua_tostring(L, 1) || "multirand", multirand_module_functions);
     1.8 +  luaL_register(L, lua_tostring(L, 1), multirand_module_functions);
     1.9  #endif
    1.10    return 1;
    1.11  }

Impressum / About Us