mirror of https://github.com/AxioDL/metaforce.git
CParticleElectric: Return std::nullopt in GetBounds()
Same behavior, but avoids zeroing out the internal buffer in some implementations of std::optional.
This commit is contained in:
parent
852dd5c6bf
commit
a49d26f800
|
@ -695,10 +695,11 @@ bool CParticleElectric::IsSystemDeletable() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
std::optional<zeus::CAABox> CParticleElectric::GetBounds() const {
|
std::optional<zeus::CAABox> CParticleElectric::GetBounds() const {
|
||||||
if (GetParticleCount() <= 0)
|
if (GetParticleCount() <= 0) {
|
||||||
return {};
|
return std::nullopt;
|
||||||
else
|
}
|
||||||
return x160_systemBounds;
|
|
||||||
|
return x160_systemBounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
u32 CParticleElectric::GetParticleCount() const {
|
u32 CParticleElectric::GetParticleCount() const {
|
||||||
|
|
Loading…
Reference in New Issue