summaryrefslogtreecommitdiff
path: root/src/graphics/Graphics.cpp
diff options
context:
space:
mode:
authormniip <mniip@mniip.com>2013-09-06 11:04:49 (GMT)
committer jacksonmj <mj-pt@jacksonmj.co.uk>2013-09-06 12:09:24 (GMT)
commit8d96f3f6b6a872956cac4217c4a8f56d6316738b (patch)
treec61bb42865e38f0befd4ed651fe23789869bae18 /src/graphics/Graphics.cpp
parentd9089d13c4d7299236da6736480bf9fe967541e2 (diff)
downloadpowder-8d96f3f6b6a872956cac4217c4a8f56d6316738b.zip
powder-8d96f3f6b6a872956cac4217c4a8f56d6316738b.tar.gz
fix segfault on wordwrapping a string with a character >=128
Diffstat (limited to 'src/graphics/Graphics.cpp')
-rw-r--r--src/graphics/Graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp
index aa00821..c70344b 100644
--- a/src/graphics/Graphics.cpp
+++ b/src/graphics/Graphics.cpp
@@ -586,7 +586,7 @@ int Graphics::textwidth(const char *s)
return x-1;
}
-int Graphics::CharWidth(char c)
+int Graphics::CharWidth(unsigned char c)
{
return font_data[font_ptrs[(int)c]];
}