summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/pieceinf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/pieceinf.cpp b/common/pieceinf.cpp
index e1936d3..158a242 100644
--- a/common/pieceinf.cpp
+++ b/common/pieceinf.cpp
@@ -547,7 +547,8 @@ void PieceInfo::LoadInformation()
unsigned long colors, *p;
bytes++;
p = (unsigned long*)bytes;
- colors = GUINT32(*p);
+ *p = GUINT32(*p);
+ colors = *p;
p++;
while (colors--)
@@ -579,7 +580,8 @@ void PieceInfo::LoadInformation()
unsigned short colors, *p;
bytes++;
p = (unsigned short*)bytes;
- colors = GUINT16(*p);
+ *p = GUINT16(*p);
+ colors = *p;
p++;
while (colors--)