diff options
-rw-r--r-- | engines/prince/cursor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/prince/cursor.cpp b/engines/prince/cursor.cpp index c09fe43bfc..38b5be3bca 100644 --- a/engines/prince/cursor.cpp +++ b/engines/prince/cursor.cpp @@ -40,12 +40,12 @@ Cursor::~Cursor() { bool Cursor::loadFromStream(Common::SeekableReadStream &stream) { stream.skip(4); uint16 width = stream.readUint16LE(); - uint16 heigth = stream.readUint16LE(); + uint16 height = stream.readUint16LE(); _surface = new Graphics::Surface(); - _surface->create(width, heigth, Graphics::PixelFormat::createFormatCLUT8()); + _surface->create(width, height, Graphics::PixelFormat::createFormatCLUT8()); - for (int h = 0; h < heigth; h++) { + for (int h = 0; h < height; h++) { stream.read(_surface->getBasePtr(0, h), width); } return true; |