Skip to content

Commit

Permalink
Length is in palette entries, not bytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed May 13, 2015
1 parent bbca558 commit e26c6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SonLVLAPI/DataTypes.cs
Expand Up @@ -108,7 +108,7 @@ public static SonLVLColor[] Load(byte[] file, int address, int length, EngineVer

public static SonLVLColor[] Load(byte[] file, EngineVersion game)
{
return Load(file, 0, file.Length, game);
return Load(file, 0, file.Length / (game == EngineVersion.SCDPC ? 4 : 2), game);
}

public static SonLVLColor[] Load(string filename, EngineVersion game)
Expand Down

0 comments on commit e26c6ee

Please sign in to comment.