MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / ~MapHandler

Method ~MapHandler

src/bzfs/lua/MapObject.cpp:70–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68
69
70MapHandler::~MapHandler() {
71 mapHandlers.erase(objName);
72
73 lua_State* L = LuaServer::GetL();
74 if (L == NULL) {
75 return;
76 }
77 luaL_unref(L, LUA_REGISTRYINDEX, luaRef);
78}
79
80
81bool MapHandler::handle(bz_ApiString objToken, bz_CustomMapObjectInfo* info) {

Callers

nothing calls this directly

Calls 1

luaL_unrefFunction · 0.50

Tested by

no test coverage detected