1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix 32 bits depth issues during combat.

This commit is contained in:
Frank Zago
2009-05-17 03:34:41 +00:00
parent bf562bdb77
commit bc506bbc77

View File

@@ -294,7 +294,7 @@ inline void CCreatureAnimation::putPixel(
{ {
if(palc!=0) if(palc!=0)
{ {
Uint8 * p = (Uint8*)dest->pixels + ftcp*3; Uint8 * p = (Uint8*)dest->pixels + ftcp*dest->format->BytesPerPixel;
if(palc > 7) //normal color if(palc > 7) //normal color
{ {
p[0] = color.B; p[0] = color.B;