mirror of https://github.com/AxioDL/metaforce.git
CWeaponDescription: Make operator bool() explicit
Eliminates potential error-prone implicit conversions.
This commit is contained in:
parent
886d951736
commit
515103aa92
|
@ -18,7 +18,7 @@ struct SCollisionResponseData {
|
|||
bool m_found = false;
|
||||
SCollisionResponseData() = default;
|
||||
SCollisionResponseData(CToken&& tok, bool found) : m_res(std::move(tok)), m_found(found) {}
|
||||
operator bool() const { return m_found; }
|
||||
explicit operator bool() const { return m_found; }
|
||||
};
|
||||
|
||||
class CWeaponDescription {
|
||||
|
|
Loading…
Reference in New Issue