aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/luax/luax.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/3rdparty/luax/luax.h b/src/3rdparty/luax/luax.h
index 0055176..aac9ee4 100644
--- a/src/3rdparty/luax/luax.h
+++ b/src/3rdparty/luax/luax.h
@@ -230,14 +230,14 @@ inline void luax_newtype(lua_State* L, const char* tname, const luaL_Reg* f)
lua_pushvalue(L, -1);
lua_setfield(L, -2, "__index");
- if (f != 0)
- luaL_register(L, 0, f);
+ if (f != NULL)
+ luaL_register(L, NULL, f);
lua_pop(L, 1); // Pops metatable.
}
/**
-* Instance of a type.
+* Instantiate of a type.
*/
inline void* luax_newinstance(lua_State* L, const char* tname, int size)
{