extra assertion

This commit is contained in:
Silent 2018-01-15 01:51:36 +01:00
parent 2d1c7f97e6
commit e021dfe53f

View file

@ -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));