Skip to content

Commit 4d02059

Browse files
Fix unnecessary mem access update from dpatches
1 parent 16790cb commit 4d02059

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripting/randomizer/patch.sp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,10 @@ enum struct Patch
7979

8080
void Disable()
8181
{
82+
// Assuming that Enable() is called before Disable(), not needing to update mem access
83+
8284
for (int i = 0; i < this.iPatchCount; i++)
83-
StoreToAddress(this.pAddress + view_as<Address>(i), this.iValueOriginal[i], NumberType_Int8);
85+
StoreToAddress(this.pAddress + view_as<Address>(i), this.iValueOriginal[i], NumberType_Int8, false);
8486
}
8587
}
8688

0 commit comments

Comments
 (0)