From e021dfe53f63489272134fcc2b1eb1f7319e8c5a Mon Sep 17 00:00:00 2001 From: Silent Date: Mon, 15 Jan 2018 01:51:36 +0100 Subject: [PATCH] extra assertion --- SilentPatchSA/SilentPatchSA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/SilentPatchSA/SilentPatchSA.cpp b/SilentPatchSA/SilentPatchSA.cpp index 8b5c948..cbbe0d0 100644 --- a/SilentPatchSA/SilentPatchSA.cpp +++ b/SilentPatchSA/SilentPatchSA.cpp @@ -641,6 +641,7 @@ void DrawMoonWithPhases(uint8_t moonColor, float* screenPos, float sizeX, float // Load from memory HRSRC resource = FindResource(hDLLModule, MAKEINTRESOURCE(IDB_LUNAR64), RT_RCDATA); + assert( resource != nullptr ); void* pMoonMask = LockResource( LoadResource(hDLLModule, resource) ); return CPNGFile::ReadFromMemory(pMoonMask, SizeofResource(hDLLModule, resource));