diff --git a/src/video/mng.cpp b/src/video/mng.cpp index 4d1b852d1e..95c2aab53e 100644 --- a/src/video/mng.cpp +++ b/src/video/mng.cpp @@ -226,11 +226,10 @@ static std::map MngCache; Mng *Mng::New(const std::string &name) { const std::string file = LibraryFileName(name); - Mng *mng = MngCache[file]; + Mng *&mng = MngCache[file]; if (mng == nullptr) { mng = new Mng(); mng->name = LibraryFileName(name); - Assert(mng); } mng->refcnt++; return mng;