Skip to content

Commit

Permalink
Small oopsie in the conditional statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Jujstme committed Jun 29, 2024
1 parent ea60eaf commit 25185fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game_engine/unity/il2cpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,10 @@ impl Class {
iter::from_fn(move || {
if this_class?
.get_name::<CSTR>(process, module)
.is_ok_and(|name| !name.matches("Object"))
.is_ok_and(|name| name.matches("Object"))
|| this_class?
.get_name_space::<CSTR>(process, module)
.is_ok_and(|name| !name.matches("UnityEngine"))
.is_ok_and(|name| name.matches("UnityEngine"))
{
None
} else {
Expand Down

0 comments on commit 25185fa

Please sign in to comment.