Skip to content

Commit 4ad9cde

Browse files
committed
Fix implicit subtraction
1 parent ab1a50d commit 4ad9cde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/PatchManager.Core/Assets/PatchingManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private static AsyncOperationHandle<IList<TextAsset>> RebuildCache(string label)
188188
{
189189
var patchedText = PatchJson(label, name, text);
190190
if (patchedText == "") continue;
191-
archiveFiles[name] = text;
191+
archiveFiles[name] = patchedText;
192192
labelCacheEntry.Assets.Add(name);
193193
assetsCacheEntries.Add(name, new CacheEntry
194194
{

src/PatchManager.SassyPatching/Nodes/Expressions/Unary/ImplicitSubtract.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ internal override DataValue GetResult(DataValue leftHandSide, DataValue rightHan
1515
{
1616
try
1717
{
18-
return leftHandSide.Real - rightHandSide.Integer;
18+
return leftHandSide - rightHandSide;
1919
}
2020
catch (DataValueOperationException)
2121
{

0 commit comments

Comments
 (0)