From 461ec9f3d6ddfb3642644d85af925c2c7518e642 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 2 Mar 2012 18:50:55 +0100 Subject: [PATCH] fix regarding last commit --- apps/openmw/mwrender/terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/terrain.cpp b/apps/openmw/mwrender/terrain.cpp index 325892563..ee7175465 100644 --- a/apps/openmw/mwrender/terrain.cpp +++ b/apps/openmw/mwrender/terrain.cpp @@ -550,7 +550,7 @@ namespace MWRender const unsigned char b = colours[colourOffset + 2]; //as is the case elsewhere we need to flip the y - const size_t imageOffset = (size - 1 - y)*size*3 + x*3; + const size_t imageOffset = (size - 1 - y)*size*4 + x*4; pDest[imageOffset + 0] = b; pDest[imageOffset + 1] = g; pDest[imageOffset + 2] = r;