mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-19 10:41:55 +00:00
AGS: Fix writing uninitialized data to savegames
This commit is contained in:
parent
675d67fea1
commit
304d82a9ba
@ -173,8 +173,10 @@ Globals::Globals() {
|
||||
_dynamicallyCreatedSurfaces = new AGS::Shared::Bitmap *[MAX_DYNAMIC_SURFACES];
|
||||
Common::fill(_dynamicallyCreatedSurfaces, _dynamicallyCreatedSurfaces +
|
||||
MAX_DYNAMIC_SURFACES, (AGS::Shared::Bitmap *)nullptr);
|
||||
_palette = new color[256];
|
||||
_maincoltable = new COLOR_MAP();
|
||||
_palette = new color[256];
|
||||
for (int i = 0; i < PALETTE_COUNT; ++i)
|
||||
_palette[i].clear();
|
||||
|
||||
// draw_software.cpp globals
|
||||
_BlackRects = new DirtyRects();
|
||||
|
@ -53,6 +53,9 @@ struct color {
|
||||
|
||||
void readFromFile(AGS::Shared::Stream *file);
|
||||
void writeToFile(AGS::Shared::Stream *file) const;
|
||||
void clear() {
|
||||
r = g = b = filler = 0;
|
||||
}
|
||||
} PACKED_STRUCT;
|
||||
|
||||
typedef color RGB;
|
||||
|
Loading…
x
Reference in New Issue
Block a user