- Fixed: Valgrind error when copying the FON2 palettes.

SVN r3812 (trunk)
This commit is contained in:
Braden Obrzut 2012-08-07 20:09:07 +00:00
parent 5f4889d99e
commit cb296a6660
1 changed files with 1 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ void FSingleLumpFont::LoadFON2 (int lump, const BYTE *data)
SpaceWidth = totalwidth * 2 / (3 * count); SpaceWidth = totalwidth * 2 / (3 * count);
} }
memcpy(PaletteData, palette, 768); memcpy(PaletteData, palette, (ActiveColors+1)*3);
data_p = palette + (ActiveColors+1)*3; data_p = palette + (ActiveColors+1)*3;