# HG changeset patch # User phoku@33b003aa-7bff-0310-803a-e67f0ece8222 # Date 1224016802 0 # Node ID c3418554467fe96d7761a9161467c76da1d540b3 # Parent e62122d127278593ff1ee72818ec096f42137c9b Sorry. Last fix/bug was brought to you by pure unadulterated stupitity. diff -r e62122d12727 -r c3418554467f engine/core/video/image.cpp --- a/engine/core/video/image.cpp Tue Oct 14 20:20:29 2008 +0000 +++ b/engine/core/video/image.cpp Tue Oct 14 20:40:02 2008 +0000 @@ -108,7 +108,7 @@ } void Image::getPixelRGBA(int x, int y, uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) { - if ((x < 0) || (x > m_surface->w) || (y < 0) || (y > m_surface->h)) { + if ((x < 0) || (x >= m_surface->w) || (y < 0) || (y >= m_surface->h)) { r = 0; g = 0; b = 0;