aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2010-04-19 09:46:27 +0000
committerMax Horn2010-04-19 09:46:27 +0000
commit4bf7e9e6b0ce72a67b8c7d296ed714a6a195905b (patch)
tree6cf2b1a5998d3d67ab8da23384ad86703e7fdee5
parentf1979f936fa30fba284a028a15518daf6c115c83 (diff)
downloadscummvm-rg350-4bf7e9e6b0ce72a67b8c7d296ed714a6a195905b.tar.gz
scummvm-rg350-4bf7e9e6b0ce72a67b8c7d296ed714a6a195905b.tar.bz2
scummvm-rg350-4bf7e9e6b0ce72a67b8c7d296ed714a6a195905b.zip
SCI: Fix yet another (new) const correctness violation.
I would suggest rewriting all of text16.cpp to use byte* instead of char*, then all this casting around (which introduces the const correctness violations) would not be necessary in the first place. svn-id: r48711
-rw-r--r--engines/sci/graphics/text16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index e320f0e7f7..531895cdfb 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -180,7 +180,7 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
case 0xD:
// Check, if 0xA is following, if so include it as well
- if ((*(unsigned char *)text) == 0xA)
+ if ((*(const unsigned char *)text) == 0xA)
curCharCount++;
case 0xA:
curCharCount++;