Skip to content

Commit

Permalink
Fix an over-aggressive assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jbzdarkid committed Apr 10, 2022
1 parent 4029ac7 commit 90e5b96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ void Memory::Initialize() {
return;
}

// Clear sigscans to avoid duplication (or leftover sigscans from the trainer)
assert(_sigScans.size() == 0);
// Clear out any leftover sigscans from consumers (e.g. the trainer)
_sigScans.clear();

AddSigScan({0x74, 0x41, 0x48, 0x85, 0xC0, 0x74, 0x04, 0x48, 0x8B, 0x48, 0x10}, [&](__int64 offset, int index, const std::vector<byte>& data) {
Expand Down

0 comments on commit 90e5b96

Please sign in to comment.