CPowerBomb: Return std::nullopt in GetTouchBounds()

Avoids unnecessary zeroing of the internal buffer of std::optional in
some implementations (libstdc++ and libc++).
This commit is contained in:
Lioncash 2020-03-25 15:56:57 -04:00
parent cda5a48970
commit 6365f2ee1c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public:
void Think(float, CStateManager&) override;
void AddToRenderer(const zeus::CFrustum&, const CStateManager&) const override;
void Render(const CStateManager&) const override {}
std::optional<zeus::CAABox> GetTouchBounds() const override { return {}; }
std::optional<zeus::CAABox> GetTouchBounds() const override { return std::nullopt; }
void Touch(CActor&, CStateManager&) override { /*x158_24_canStartFilter; */
}
float GetCurTime() const { return x15c_curTime; }