Fix some seek issues when writing switch PTCL

This commit is contained in:
KillzXGaming 2019-08-21 21:10:13 -04:00 committed by GitHub
parent a6c691bd82
commit 503e4f964d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1225,11 +1225,11 @@ namespace FirstPlugin
//Seek to the contant colors
if (header.VFXVersion >= 37)
writer.Seek(Position + 2376, SeekOrigin.Begin);
writer.Seek(Position + 2392, SeekOrigin.Begin);
else if (header.VFXVersion > 21)
writer.Seek(Position + 2384, SeekOrigin.Begin);
else
writer.Seek(Position + 2376, SeekOrigin.Begin);
writer.Seek(Position + 2392, SeekOrigin.Begin);
writer.Write(ConstantColor0.R);
writer.Write(ConstantColor0.G);