mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Merge pull request #1278 from Azaezel/alpha41/oopsOps
fix fighting itterators
This commit is contained in:
commit
cbe7f77ce0
1 changed files with 4 additions and 4 deletions
|
|
@ -451,16 +451,16 @@ void GuiInspectorField::setWordData(const S32& wordIndex, const char* data, bool
|
|||
|
||||
StringBuilder newFieldData;
|
||||
const U32 wordCount = StringUnit::getUnitCount(fieldData, " \t\n");
|
||||
for (U32 i = 0; i < wordCount; i++)
|
||||
for (U32 wc = 0; wc < wordCount; wc++)
|
||||
{
|
||||
if (i != 0)
|
||||
if (wc != 0)
|
||||
newFieldData.append(" ");
|
||||
|
||||
if (i == wordIndex)
|
||||
if (wc == wordIndex)
|
||||
newFieldData.append(data);
|
||||
else
|
||||
{
|
||||
newFieldData.append(StringUnit::getUnit(fieldData, i, " \t\n"));
|
||||
newFieldData.append(StringUnit::getUnit(fieldData, wc, " \t\n"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue