Skip to content

Commit

Permalink
fix: fix check for successful ID mapping (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafearTheModder authored Sep 20, 2024
1 parent b008a83 commit 4aac68c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/REL/ID.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ namespace REL
[](auto&& a_lhs, auto&& a_rhs) {
return a_lhs.id < a_rhs.id;
});
if (it == _id2offset.end()) {
if (it->id != a_id) {
stl::report_and_fail(
std::format(
"Failed to find the id within the address library: {}\n"
"This means this script extender plugin is incompatible with the address "
"library for this version of the game, and thus does not support it."sv,
"This means that this script extender plugin needs a newer version of the "
"library than you currently have."sv,
a_id));
}

Expand Down

0 comments on commit 4aac68c

Please sign in to comment.