From 4bf7e9e6b0ce72a67b8c7d296ed714a6a195905b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 19 Apr 2010 09:46:27 +0000 Subject: 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 --- engines/sci/graphics/text16.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- cgit v1.2.3