CWeaponDescription: Make operator bool() explicit

Eliminates potential error-prone implicit conversions.
This commit is contained in:
Lioncash 2020-04-11 15:04:53 -04:00
parent 886d951736
commit 515103aa92
1 changed files with 1 additions and 1 deletions

View File

@ -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 {