mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-12-29 15:23:02 +05:00
extra assertion
This commit is contained in:
parent
2d1c7f97e6
commit
e021dfe53f
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue