summaryrefslogtreecommitdiffstats
path: root/ksnake/level.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ksnake/level.cpp')
-rw-r--r--ksnake/level.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ksnake/level.cpp b/ksnake/level.cpp
index 0ea100f0..5ece0a1f 100644
--- a/ksnake/level.cpp
+++ b/ksnake/level.cpp
@@ -85,7 +85,7 @@ void Level::initBoard(const TQImage &image)
uchar *b;
for ( int y = 0;y < image.height();y++ ) {
- b = image.scanLine(y);
+ b = const_cast<TQImage&>(image).scanLine(y);
for ( int x = 0;x < image.width();x++ ) {
if ( image.bitOrder() == TQImage::BigEndian ) {