mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-24 07:41:29 -04:00
Fix a UB in morpheel
This commit is contained in:
@@ -502,6 +502,11 @@ void daE_OctBg_c::core_fish_attack() {
|
||||
} else if (field_0xbaf == 0) {
|
||||
cXyz cStack_68(current.pos);
|
||||
f32 in_f31;
|
||||
|
||||
#if AVOID_UB
|
||||
in_f31 = cM_rndFX(80.0f) + 100.0f;
|
||||
#endif
|
||||
|
||||
cStack_68.y += 200.0f;
|
||||
if (fopAcM_gc_c::gndCheck(&cStack_68)) {
|
||||
f32 groundY = fopAcM_gc_c::getGroundY();
|
||||
|
||||
Reference in New Issue
Block a user