From 3c17336fb00722be0a9c3efb93314f14185a83fb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 25 Mar 2020 20:42:19 -0400 Subject: [PATCH] CSaveWorld: Make constructor explicit Prevents error-prone implicit constructions from occurring. --- Runtime/CSaveWorld.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/CSaveWorld.hpp b/Runtime/CSaveWorld.hpp index 75403fd74..097ed3522 100644 --- a/Runtime/CSaveWorld.hpp +++ b/Runtime/CSaveWorld.hpp @@ -31,7 +31,7 @@ private: std::vector x44_scans; public: - CSaveWorld(CInputStream& in); + explicit CSaveWorld(CInputStream& in); u32 GetAreaCount() const; u32 GetCinematicCount() const; s32 GetCinematicIndex(const TEditorId& id) const;