mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-15 01:24:45 +02:00
Fixed a few CWE-457
This commit is contained in:
@ -1377,6 +1377,9 @@ CMapHandler::CMapHandler()
|
||||
worldViewBlitter = new CMapWorldViewBlitter(this);
|
||||
puzzleViewBlitter = new CMapPuzzleViewBlitter(this);
|
||||
fadeAnimCounter = 0;
|
||||
map = nullptr;
|
||||
tilesW = tilesH = 0;
|
||||
offsetX = offsetY = 0;
|
||||
|
||||
egdeAnimation = make_unique<CAnimation>("EDG");
|
||||
egdeAnimation->preload();
|
||||
@ -1413,6 +1416,11 @@ void CMapHandler::discardWorldViewCache()
|
||||
cache.discardWorldViewCache();
|
||||
}
|
||||
|
||||
CMapHandler::CMapCache::CMapCache()
|
||||
{
|
||||
worldViewCachedScale = 0;
|
||||
}
|
||||
|
||||
void CMapHandler::CMapCache::discardWorldViewCache()
|
||||
{
|
||||
for(auto & cache : data)
|
||||
|
Reference in New Issue
Block a user