aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r--NorthstarDedicatedTest/concommand.cpp2
-rw-r--r--NorthstarDedicatedTest/convar.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/concommand.cpp b/NorthstarDedicatedTest/concommand.cpp
index 1bdda91b..6ddc6881 100644
--- a/NorthstarDedicatedTest/concommand.cpp
+++ b/NorthstarDedicatedTest/concommand.cpp
@@ -38,7 +38,7 @@ bool ConCommand::IsCommand(void) const
//-----------------------------------------------------------------------------
bool ConCommandBase::IsCommand(void) const
{
- return true;
+ return m_pConCommandBaseVTable != g_pConVar_Vtable;
}
//-----------------------------------------------------------------------------
diff --git a/NorthstarDedicatedTest/convar.h b/NorthstarDedicatedTest/convar.h
index b1424fb7..90e38e94 100644
--- a/NorthstarDedicatedTest/convar.h
+++ b/NorthstarDedicatedTest/convar.h
@@ -5,6 +5,7 @@
#include "concommand.h"
// taken directly from iconvar.h
+extern void* g_pConVar_Vtable;
// The default, no flags at all
#define FCVAR_NONE 0