mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fix for avoid a zero division on _StringTable::resize.
This commit is contained in:
parent
2142d452d4
commit
e6e225e081
1 changed files with 4 additions and 1 deletions
|
|
@ -195,8 +195,11 @@ StringTableEntry _StringTable::lookupn(const char* val, S32 len, const bool cas
|
|||
}
|
||||
|
||||
//--------------------------------------
|
||||
void _StringTable::resize(const U32 newSize)
|
||||
void _StringTable::resize(const U32 _newSize)
|
||||
{
|
||||
/// avoid a possible 0 division
|
||||
const U32 newSize = _newSize ? _newSize : 1;
|
||||
|
||||
Node *head = NULL, *walk, *temp;
|
||||
U32 i;
|
||||
// reverse individual bucket lists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue