From 209cd4a54e825978945d94f56fe86ed630ac2488 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 8 Mar 2020 21:20:05 -0400 Subject: [PATCH] CStaticRes: Make operator bool explicit Prevents potentially error-prone conversions to bool. Similar to the changes recently made to CToken. --- Runtime/Character/CModelData.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Character/CModelData.hpp b/Runtime/Character/CModelData.hpp index 3ff8359d7..d6b6f3576 100644 --- a/Runtime/Character/CModelData.hpp +++ b/Runtime/Character/CModelData.hpp @@ -32,7 +32,7 @@ public: CAssetId GetId() const { return x0_cmdlId; } const zeus::CVector3f& GetScale() const { return x4_scale; } - operator bool() const { return x0_cmdlId != 0; } + explicit operator bool() const { return x0_cmdlId != 0; } }; class CAnimRes {