diff options
Diffstat (limited to 'DevIL/src-IL/src/il_pnm.cpp')
-rw-r--r-- | DevIL/src-IL/src/il_pnm.cpp | 6 |
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 |