uninitialized variables-console

This commit is contained in:
AzaezelX 2020-05-11 14:40:31 -05:00
parent e9415a0994
commit 2c1508c169
23 changed files with 66 additions and 11 deletions

View file

@ -220,7 +220,21 @@ public:
: Parent( sizeof( void* ), conIdPtr, typeName )
{
VECTOR_SET_ASSOCIATION( mFieldList );
mCategory = StringTable->EmptyString();
mClassGroupMask = 0;
std::fill_n(mClassId, NetClassGroupsCount, -1);
mClassName = StringTable->EmptyString();
mClassSizeof = 0;
mClassType = 0;
mDescription = StringTable->EmptyString();
#ifdef TORQUE_NET_STATS
dMemset(mDirtyMaskFrequency, 0, sizeof(mDirtyMaskFrequency));
dMemset(mDirtyMaskTotal, 0, sizeof(mDirtyMaskTotal));
#endif
mDynamicGroupExpand = false;
mNamespace = NULL;
mNetEventDir = 0;
nextClass = NULL;
parentClass = NULL;
mIsRenderEnabled = true;
mIsSelectionEnabled = true;
@ -496,6 +510,7 @@ public:
validator( NULL ),
setDataFn( NULL ),
getDataFn( NULL ),
writeDataFn(NULL),
networkMask(0)
{
doNotSubstitute = keepClearSubsOnly = false;