mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
uninitialized variables-sim
This commit is contained in:
parent
a1a6143e01
commit
87603029db
5 changed files with 8 additions and 6 deletions
|
|
@ -92,7 +92,7 @@ class ActionMap : public SimObject
|
||||||
U32 deviceInst;
|
U32 deviceInst;
|
||||||
|
|
||||||
Vector<Node> nodeMap;
|
Vector<Node> nodeMap;
|
||||||
DeviceMap() {
|
DeviceMap():deviceType(NULL), deviceInst(NULL){
|
||||||
VECTOR_SET_ASSOCIATION(nodeMap);
|
VECTOR_SET_ASSOCIATION(nodeMap);
|
||||||
}
|
}
|
||||||
~DeviceMap();
|
~DeviceMap();
|
||||||
|
|
|
||||||
|
|
@ -469,6 +469,8 @@ NetConnection::PacketNotify::PacketNotify()
|
||||||
sendTime = 0;
|
sendTime = 0;
|
||||||
eventList = 0;
|
eventList = 0;
|
||||||
ghostList = 0;
|
ghostList = 0;
|
||||||
|
subList = NULL;
|
||||||
|
nextPacket = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool NetConnection::checkTimeout(U32 time)
|
bool NetConnection::checkTimeout(U32 time)
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ public:
|
||||||
/// @{
|
/// @{
|
||||||
|
|
||||||
///
|
///
|
||||||
NetEvent() { mGuaranteeType = GuaranteedOrdered; }
|
NetEvent() { mSourceId = -1; mGuaranteeType = GuaranteedOrdered; }
|
||||||
virtual ~NetEvent();
|
virtual ~NetEvent();
|
||||||
|
|
||||||
virtual void write(NetConnection *ps, BitStream *bstream) = 0;
|
virtual void write(NetConnection *ps, BitStream *bstream) = 0;
|
||||||
|
|
@ -863,7 +863,7 @@ public:
|
||||||
void setScopeObject(NetObject *object);
|
void setScopeObject(NetObject *object);
|
||||||
|
|
||||||
/// Get the object around which we are currently scoping network traffic.
|
/// Get the object around which we are currently scoping network traffic.
|
||||||
NetObject *getScopeObject();
|
NetObject* getScopeObject() {};
|
||||||
|
|
||||||
/// Add an object to scope.
|
/// Add an object to scope.
|
||||||
void objectInScope(NetObject *object);
|
void objectInScope(NetObject *object);
|
||||||
|
|
@ -1047,7 +1047,7 @@ public:
|
||||||
|
|
||||||
bool startDemoRecord(const char *fileName);
|
bool startDemoRecord(const char *fileName);
|
||||||
bool replayDemoRecord(const char *fileName);
|
bool replayDemoRecord(const char *fileName);
|
||||||
void startDemoRead();
|
void startDemoRead() {};
|
||||||
void stopRecording();
|
void stopRecording();
|
||||||
void stopDemoPlayback();
|
void stopDemoPlayback();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ NetInterface::NetInterface()
|
||||||
|
|
||||||
mLastTimeoutCheckTime = 0;
|
mLastTimeoutCheckTime = 0;
|
||||||
mAllowConnections = false;
|
mAllowConnections = false;
|
||||||
|
dMemset(mRandomHashData, 0, sizeof(mRandomHashData));
|
||||||
|
mRandomDataInitialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NetInterface::initRandomData()
|
void NetInterface::initRandomData()
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,6 @@ class NetStringTable
|
||||||
U32 size;
|
U32 size;
|
||||||
U32 firstFree;
|
U32 firstFree;
|
||||||
U32 firstValid;
|
U32 firstValid;
|
||||||
U32 sequenceCount;
|
|
||||||
|
|
||||||
Entry *table;
|
Entry *table;
|
||||||
U32 hashTable[HashTableSize];
|
U32 hashTable[HashTableSize];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue