1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

fix_crash_loading_frames_from_def

This commit is contained in:
MichalZr6
2024-11-27 23:07:45 +01:00
parent 132500b292
commit 5fc61df717
6 changed files with 61 additions and 12 deletions

View File

@ -43,8 +43,11 @@ public:
CDefFile(const AnimationPath & Name);
~CDefFile();
std::string fileName;
//load frame as SDL_Surface
void loadFrame(size_t frame, size_t group, IImageLoader &loader) const;
bool hasFrame(size_t frame, size_t group) const;
const std::map<size_t, size_t> getEntries() const;
};