2
0
nordsoft 2 жил өмнө
parent
commit
0d9f7d15a2

+ 1 - 1
mapeditor/Animation.cpp

@@ -453,7 +453,7 @@ void ImageLoader::init(QPoint SpriteSize, QPoint Margins, QPoint FullSize)
 	memset((void *)image->bits(), 0, fullSize.y() * image->bytesPerLine());
 	
 	lineStart = image->bits();
-	lineStart += margins.y() * image->bytesPerLine + margins.x();
+	lineStart += margins.y() * image->bytesPerLine() + margins.x();
 	position = lineStart;
 }