MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VarDelete

Method VarDelete

engine/Evaluator/express.cpp:2606–2615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2604}
2605
2606void GameState::VarDelete(const char* name)
2607{
2608 GameVarSpace* space = (*name == '_' ? _e->local : this);
2609 if (!space)
2610 {
2611 SetError(EvalNamespace);
2612 return;
2613 }
2614 space->_vars.Remove(name);
2615}
2616
2617EvalError GameState::GetLastError() const
2618{

Calls 2

SetErrorFunction · 0.50
RemoveMethod · 0.45

Tested by

no test coverage detected