Skip to content

Commit 40e078e

Browse files
committed
Fixed a bug in health display bars in RE2, thanks @reeves for reporting this.
1 parent c6107a1 commit 40e078e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Speedrun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ void Speedrun::draw_enemies(RopewayEnemyManager *enemy_manager, const bool draw_
227227
if (ec == nullptr) break;
228228
if (!utility::re_managed_object::is_managed_object(ec)) continue;
229229
for (auto c = ec->childComponent; c != nullptr && c != ec; c = c->childComponent) {
230-
if (utility::re_managed_object::is_a(c, "HitPointController")) {
230+
if (utility::re_managed_object::is_a(c, game_namespace("HitPointController"))) {
231231
hitpoint_controller = (REBehavior *) c;
232232
break;
233233
}

0 commit comments

Comments
 (0)