Skip to content

Commit

Permalink
Tweak Image classes table cycle detection
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKnauth committed Sep 17, 2023
1 parent b5c510a commit cd6ac64
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/game_engine/unity/mono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,9 @@ impl Image {
.unwrap_or_default();

iter::from_fn(move || {
#[cfg(feature = "alloc")]
if seen.contains(&table) { return None; }
if !table.is_null() {
#[cfg(feature = "alloc")]
seen.insert(table);
if seen.replace(table).is_some() { return None; }
let class = module.read_pointer(process, table).ok()?;
table = module
.read_pointer(
Expand Down

0 comments on commit cd6ac64

Please sign in to comment.