Skip to content

Commit

Permalink
Fixed a bug in health display bars in RE2, thanks @reeves for reporti…
Browse files Browse the repository at this point in the history
…ng this.
  • Loading branch information
hntd187 committed Feb 12, 2021
1 parent c6107a1 commit 40e078e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Speedrun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ void Speedrun::draw_enemies(RopewayEnemyManager *enemy_manager, const bool draw_
if (ec == nullptr) break;
if (!utility::re_managed_object::is_managed_object(ec)) continue;
for (auto c = ec->childComponent; c != nullptr && c != ec; c = c->childComponent) {
if (utility::re_managed_object::is_a(c, "HitPointController")) {
if (utility::re_managed_object::is_a(c, game_namespace("HitPointController"))) {
hitpoint_controller = (REBehavior *) c;
break;
}
Expand Down

0 comments on commit 40e078e

Please sign in to comment.