summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorabma <spring@abma.de>2017-01-24 01:35:10 +0100
committerabma <spring@abma.de>2017-01-24 01:35:10 +0100
commitc22c060651b914164b611f27bfb0f37da27a5dfc (patch)
tree11ffcf7347da04fbeb726c8f97e60a987b66a177
parent3f242e78f50fd5c260496cc82b4f8ccd265fd1f1 (diff)
downloaddevil-c22c060651b914164b611f27bfb0f37da27a5dfc.tar.gz
ah crap: correctly fix compile error
addition to 4f3a9ac4475cf7973b68dbaa6f3b94b44417ed74
-rw-r--r--DevIL/src-IL/src/il_pnm.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/DevIL/src-IL/src/il_pnm.cpp b/DevIL/src-IL/src/il_pnm.cpp
index 7809c16e..dc87cc9a 100644
--- a/DevIL/src-IL/src/il_pnm.cpp
+++ b/DevIL/src-IL/src/il_pnm.cpp
@@ -466,8 +466,10 @@ ILboolean ilReadPam()
Info.Depth = atoi((const char*)SmallBuff);
else if (!strncmp(TempStr.c_str(), "MAXVAL", 6))
Info.MaxColour = atoi((const char*)SmallBuff);
- else if (!strncmp(TempStr.c_str(), "TUPLTYPE", 8))
- Info.TuplType = DecodeTupleType(TempStr);
+ else if (!strncmp(TempStr.c_str(), "TUPLTYPE", 8)) {
+ string tmp = (char*)SmallBuff;
+ Info.TuplType = DecodeTupleType(tmp);
+ }
}
//@TODO: Handle other max colors and tuple types