Skip to content

Commit d292780

Browse files
committed
UObjectHook: Possible fix for unreachable assertion
1 parent 69fd680 commit d292780

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/mods/UObjectHook.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,6 +1682,14 @@ void UObjectHook::update_motion_controller_components(
16821682
continue;
16831683
}
16841684

1685+
if (mc->get_outer() == nullptr || !this->exists(mc->get_outer())) {
1686+
continue;
1687+
}
1688+
1689+
if (!sdk::UObjectReference{mc}.valid()) {
1690+
continue;
1691+
}
1692+
16851693
if (mc->get_player_index() > 0) {
16861694
continue;
16871695
}

0 commit comments

Comments
 (0)