From 7a6c30861d5d18f9ac6cd7461d311434fb6fba2c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Jun 2020 18:59:04 -0400 Subject: [PATCH] CAreaAttributes: Make constructor explicit --- src/Core/CAreaAttributes.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/CAreaAttributes.h b/src/Core/CAreaAttributes.h index 86cec024..f03a039b 100644 --- a/src/Core/CAreaAttributes.h +++ b/src/Core/CAreaAttributes.h @@ -13,14 +13,14 @@ class CAreaAttributes CAssetRef mOverrideSky; public: - CAreaAttributes(CScriptObject *pObj); + explicit CAreaAttributes(CScriptObject *pObj); ~CAreaAttributes(); void SetObject(CScriptObject *pObj); bool IsLayerEnabled() const; bool IsSkyEnabled() const; CModel* SkyModel() const; - inline CScriptObject* Instance() const { return mpObject; } + CScriptObject* Instance() const { return mpObject; } }; #endif // CAREAATTRIBUTES_H