mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
roll back changes to simFieldDictionary as it doesn't want to play nice and causing corruption
This commit is contained in:
parent
d666322a1b
commit
c7e12d3be7
3 changed files with 1259 additions and 1269 deletions
|
|
@ -32,9 +32,6 @@
|
|||
class ConsoleBaseType;
|
||||
class SimObject;
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
|
||||
#include "core/stringTable.h"
|
||||
#include "core/stream/stream.h"
|
||||
|
||||
|
|
@ -54,17 +51,18 @@ public:
|
|||
|
||||
StringTableEntry slotName;
|
||||
char *value;
|
||||
Entry *next;
|
||||
ConsoleBaseType *type;
|
||||
};
|
||||
enum
|
||||
{
|
||||
HashTableSize = 19
|
||||
};
|
||||
//Entry *mHashTable[HashTableSize];
|
||||
|
||||
std::vector<Entry> mHashTable[HashTableSize];
|
||||
Entry *mHashTable[HashTableSize];
|
||||
|
||||
private:
|
||||
static Entry *smFreeList;
|
||||
|
||||
void freeEntry(Entry *entry);
|
||||
Entry* addEntry(U32 bucket, StringTableEntry slotName, ConsoleBaseType* type, char* value = 0);
|
||||
|
||||
|
|
@ -105,7 +103,6 @@ class SimFieldDictionaryIterator
|
|||
{
|
||||
SimFieldDictionary * mDictionary;
|
||||
S32 mHashIndex;
|
||||
S32 mVecIndex;
|
||||
SimFieldDictionary::Entry * mEntry;
|
||||
|
||||
public:
|
||||
|
|
@ -115,4 +112,4 @@ public:
|
|||
};
|
||||
|
||||
|
||||
#endif // _SIMFIELDDICTIONARY_H_
|
||||
#endif // _SIMFIELDDICTIONARY_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue