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

Method reset

src/world/WorldScript.cpp:55–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53//============================================================================//
54
55void WorldScript::reset() {
56 if (L) {
57 lua_close(L);
58 L = NULL;
59 }
60 customObjects.clear();
61 sourceCode.clear();
62 author.clear();
63 license.clear();
64 options.clear();
65 objectCallback = NULL;
66 optionCallback = NULL;
67 updateCallback = NULL;
68}
69
70WorldScript::~WorldScript() {
71 reset();

Callers

nothing calls this directly

Calls 2

lua_closeFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected