summaryrefslogtreecommitdiff
path: root/src/scripting/lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r--src/scripting/lua.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp
index ac881787..422649f3 100644
--- a/src/scripting/lua.cpp
+++ b/src/scripting/lua.cpp
@@ -3691,11 +3691,11 @@ LuaScript::LuaScript():
{ "map_get_objects", map_get_objects },
{ "announce", announce },
{ "get_special_info", get_special_info },
- { NULL, NULL }
+ { nullptr, nullptr }
};
#if LUA_VERSION_NUM < 502
lua_pushvalue(mRootState, LUA_GLOBALSINDEX);
- luaL_register(mRootState, NULL, callbacks);
+ luaL_register(mRootState, nullptr, callbacks);
#else
lua_pushglobaltable(mRootState);
luaL_setfuncs(mRootState, callbacks, 0);
@@ -3709,7 +3709,7 @@ LuaScript::LuaScript():
{ "reusetime", attack_get_reusetime },
{ "damage", attack_get_damage },
{ "on_attack", attack_on_attack },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_Damage[] = {
@@ -3722,7 +3722,7 @@ LuaScript::LuaScript():
{ "type", damage_get_type },
{ "is_truestrike", damage_is_truestrike },
{ "range", damage_get_range },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_Entity[] = {
@@ -3789,14 +3789,14 @@ LuaScript::LuaScript():
{ "has_status", entity_has_status },
{ "status_time", entity_get_status_time },
{ "set_status_time", entity_set_status_time },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_ItemClass[] = {
{ "on", item_class_on },
{ "name", item_class_get_name },
{ "attacks", item_class_attacks },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_MapObject[] = {
@@ -3804,7 +3804,7 @@ LuaScript::LuaScript():
{ "bounds", map_object_get_bounds },
{ "name", map_object_get_name },
{ "type", map_object_get_type },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_MonsterClass[] = {
@@ -3812,12 +3812,12 @@ LuaScript::LuaScript():
{ "on_damage", monster_class_on_damage },
{ "name", monster_class_get_name },
{ "attacks", monster_class_attacks },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_StatusEffect[] = {
{ "on_tick", status_effect_on_tick },
- { NULL, NULL }
+ { nullptr, nullptr }
};
static luaL_Reg const members_SpecialInfo[] = {
@@ -3827,7 +3827,7 @@ LuaScript::LuaScript():
{ "on_use", specialinfo_on_use },
{ "on_recharged", specialinfo_on_recharged },
{ "category", specialinfo_get_category },
- { NULL, NULL}
+ { nullptr, nullptr}
};
LuaAttackInfo::registerType(mRootState, "Attack", members_AttackInfo);