Browse Source

Fix loading images

nordsoft 2 years ago
parent
commit
3a913140fd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mapeditor/Animation.cpp

+ 1 - 1
mapeditor/Animation.cpp

@@ -477,7 +477,7 @@ inline void ImageLoader::Load(size_t size, ui8 color)
 
 inline void ImageLoader::EndLine()
 {
-	lineStart += fullSize.x();
+	lineStart += image->bytesPerLine();
 	position = lineStart;
 }