aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2009-10-03 21:23:21 +0000
committerMartin Kiewitz2009-10-03 21:23:21 +0000
commit204b975e7fdc4a68318b47b5561dd1328528dfdd (patch)
tree51ee1c2b45bc79466bed2d2073701c66a6d53607
parent4cb0359670758b3cddcdc9d65f7832752ca05f98 (diff)
downloadscummvm-rg350-204b975e7fdc4a68318b47b5561dd1328528dfdd.tar.gz
scummvm-rg350-204b975e7fdc4a68318b47b5561dd1328528dfdd.tar.bz2
scummvm-rg350-204b975e7fdc4a68318b47b5561dd1328528dfdd.zip
SCI/newgui: initializer fixup
svn-id: r44570
-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);