aboutsummaryrefslogtreecommitdiff
path: root/gui/debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/debugger.cpp')
-rw-r--r--gui/debugger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gui/debugger.cpp b/gui/debugger.cpp
index 81a00d717c..99aebe9b62 100644
--- a/gui/debugger.cpp
+++ b/gui/debugger.cpp
@@ -347,6 +347,7 @@ void Debugger::DVar_Register(const char *varname, void *pointer, int type, int o
// Command registration function
void Debugger::DCmd_Register(const char *cmdname, Debuglet *debuglet) {
+ assert(debuglet->isValid());
assert(_dcmd_count < ARRAYSIZE(_dcmds));
strcpy(_dcmds[_dcmd_count].name, cmdname);
_dcmds[_dcmd_count].debuglet = debuglet;