Misc fixes

This commit is contained in:
hondacrx
2019-08-27 16:13:17 -04:00
parent 6a77a4afd6
commit b85860dd78
8 changed files with 15 additions and 12 deletions
@@ -460,7 +460,7 @@ namespace Game.DataStorage
int[] strIdx = GetFieldValueArray<int>(fieldIndex, atr.Length);
for (int i = 0; i < array.Length; i++)
array[i] = _stringsTable[pos + i * 4 + strIdx[i]];
array[i] = _stringsTable.LookupByKey(pos + i * 4 + strIdx[i]);
}
f.SetValue(obj, array);
@@ -524,7 +524,7 @@ namespace Game.DataStorage
{
var pos = _recordsOffset + _data.Offset + (_data.Position >> 3);
int ofs = GetFieldValue<int>(fieldIndex);
f.SetValue(obj, _stringsTable[pos + ofs]);
f.SetValue(obj, _stringsTable.LookupByKey(pos + ofs));
}
break;
case TypeCode.Object:
@@ -539,7 +539,7 @@ namespace Game.DataStorage
{
var pos = _recordsOffset + _data.Offset + (_data.Position >> 3);
int ofs = GetFieldValue<int>(fieldIndex);
localized[LocaleConstant.enUS] = _stringsTable[pos + ofs];
localized[LocaleConstant.enUS] = _stringsTable.LookupByKey(pos + ofs);
}
f.SetValue(obj, localized);