|
|
|
@ -627,6 +627,7 @@ private final function HashTable AutoResolveAlias(MutableText textValue, Text al
|
|
|
|
|
_.memory.Free(immutableValue); |
|
|
|
|
// Add "value" key only after we've checked for "$" prefix |
|
|
|
|
if (!textValue.StartsWithS("$")) { |
|
|
|
|
result.SetItem(P("value"), immutableValue); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (aliasSourceName.Compare(P("weapon"))) { |
|
|
|
@ -641,7 +642,7 @@ private final function HashTable AutoResolveAlias(MutableText textValue, Text al
|
|
|
|
|
resolvedValue = _.alias.ResolveCustom(aliasSourceName, textValue, true); |
|
|
|
|
} |
|
|
|
|
result.SetItem(P("value"), resolvedValue); |
|
|
|
|
_.memory.Free2(resolvedValue, immutableValue); |
|
|
|
|
_.memory.Free(resolvedValue); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|