From bc506bbc771b820cde7c7f4d2d11d2b432681d93 Mon Sep 17 00:00:00 2001 From: Frank Zago Date: Sun, 17 May 2009 03:34:41 +0000 Subject: [PATCH] Fix 32 bits depth issues during combat. --- client/CCreatureAnimation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/CCreatureAnimation.cpp b/client/CCreatureAnimation.cpp index bddab1c8a..421658487 100644 --- a/client/CCreatureAnimation.cpp +++ b/client/CCreatureAnimation.cpp @@ -294,7 +294,7 @@ inline void CCreatureAnimation::putPixel( { if(palc!=0) { - Uint8 * p = (Uint8*)dest->pixels + ftcp*3; + Uint8 * p = (Uint8*)dest->pixels + ftcp*dest->format->BytesPerPixel; if(palc > 7) //normal color { p[0] = color.B;