Fixed warning when exiting from non-Atlas game
This was SVN commit r3211.
This commit is contained in:
parent
c16227df06
commit
12b8dd2d9b
@ -22,9 +22,12 @@ template<typename T> void delete_fn(T* v) { delete v; }
|
|||||||
using namespace AtlasMessage;
|
using namespace AtlasMessage;
|
||||||
|
|
||||||
namespace AtlasMessage {
|
namespace AtlasMessage {
|
||||||
static CommandProc g_CommandProc;
|
|
||||||
|
|
||||||
CommandProc& GetCommandProc() { return g_CommandProc; }
|
CommandProc& GetCommandProc()
|
||||||
|
{
|
||||||
|
static CommandProc commandProc;
|
||||||
|
return commandProc;
|
||||||
|
}
|
||||||
|
|
||||||
cmdHandlers& GetCmdHandlers()
|
cmdHandlers& GetCmdHandlers()
|
||||||
{
|
{
|
||||||
@ -45,6 +48,8 @@ CommandProc::CommandProc()
|
|||||||
|
|
||||||
CommandProc::~CommandProc()
|
CommandProc::~CommandProc()
|
||||||
{
|
{
|
||||||
|
// Make sure Destroy has been called before now (to avoid
|
||||||
|
// problems from the destruction order of static variables)
|
||||||
debug_assert(!m_Commands.size());
|
debug_assert(!m_Commands.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user