mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed: Valgrind error when copying the FON2 palettes.
SVN r3812 (trunk)
This commit is contained in:
parent
5f4889d99e
commit
cb296a6660
1 changed files with 1 additions and 1 deletions
|
@ -1125,7 +1125,7 @@ void FSingleLumpFont::LoadFON2 (int lump, const BYTE *data)
|
|||
SpaceWidth = totalwidth * 2 / (3 * count);
|
||||
}
|
||||
|
||||
memcpy(PaletteData, palette, 768);
|
||||
memcpy(PaletteData, palette, (ActiveColors+1)*3);
|
||||
|
||||
data_p = palette + (ActiveColors+1)*3;
|
||||
|
||||
|
|
Loading…
Reference in a new issue