diff --git a/neo/ui/RegExp.h b/neo/ui/RegExp.h index 4cb0ae2f..6a7907d4 100644 --- a/neo/ui/RegExp.h +++ b/neo/ui/RegExp.h @@ -58,6 +58,11 @@ public: }; ID_INLINE idRegister::idRegister( void ) { + enabled = false; + type = -1; + regCount = 0; + memset(regs, 0, sizeof(regs)); + var = NULL; } ID_INLINE idRegister::idRegister( const char *p, int t ) { @@ -65,6 +70,7 @@ ID_INLINE idRegister::idRegister( const char *p, int t ) { type = t; assert( t >= 0 && t < NUMTYPES ); regCount = REGCOUNT[t]; + memset(regs, 0, sizeof(regs)); enabled = ( type == STRING ) ? false : true; var = NULL; };