aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/gui/gui_gfx.cpp2
-rw-r--r--engines/sci/gui/gui_memmgr.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/gui/gui_gfx.cpp b/engines/sci/gui/gui_gfx.cpp
index 56ce2ecfa1..34748dc23e 100644
--- a/engines/sci/gui/gui_gfx.cpp
+++ b/engines/sci/gui/gui_gfx.cpp
@@ -196,7 +196,7 @@ bool SciGUIgfx::SetResPalette(int16 resourceNo, int16 flag) {
int palColorStart = 0;
int palColorCount = 0;
int colorNo = 0;
- sciPalette palette = {0};
+ sciPalette palette;
if (palResource) {
CreatePaletteFromData(palResource->data, &palette);
diff --git a/engines/sci/gui/gui_memmgr.cpp b/engines/sci/gui/gui_memmgr.cpp
index 3b42da274e..708ebaeeb4 100644
--- a/engines/sci/gui/gui_memmgr.cpp
+++ b/engines/sci/gui/gui_memmgr.cpp
@@ -343,7 +343,7 @@ void heapDisposePtr(byte *ptr) {
//
//
void setHeapInfo(HEAPHANDLE hnd, kDataType type, const char *szinfo) {
- tagHeapInfo info = { kDataUnknown, 0 };
+ tagHeapInfo info = { kDataUnknown, { 0 } };
info.type = type;
if (szinfo)
strncpy(info.info, szinfo, 20);