瀏覽代碼

fixed internal types.

Jeff Hutchinson 4 年之前
父節點
當前提交
a2dea07d8b
共有 2 個文件被更改,包括 7 次插入0 次删除
  1. 1 0
      Engine/source/console/consoleInternal.cpp
  2. 6 0
      Engine/source/console/consoleInternal.h

+ 1 - 0
Engine/source/console/consoleInternal.cpp

@@ -468,6 +468,7 @@ char *typeValueEmpty = "";
 Dictionary::Entry::Entry(StringTableEntry in_name)
 {
    name = in_name;
+   type = TypeInternalString;
    notify = NULL;
    nextEntry = NULL;
    mUsage = NULL;

+ 6 - 0
Engine/source/console/consoleInternal.h

@@ -344,11 +344,17 @@ public:
 
       Entry() {
          name = NULL;
+         type = TypeInternalString;
          notify = NULL;
          nextEntry = NULL;
          mUsage = NULL;
          mIsConstant = false;
          mNext = NULL;
+
+         ival = 0;
+         fval = 0;
+         sval = typeValueEmpty;
+         bufferLen = 0;
       }
 
       Entry(StringTableEntry name);