diff --git a/plugins/GSdx/GSRendererHW.cpp b/plugins/GSdx/GSRendererHW.cpp index c5d7acce78..5968b7a76b 100644 --- a/plugins/GSdx/GSRendererHW.cpp +++ b/plugins/GSdx/GSRendererHW.cpp @@ -433,7 +433,9 @@ bool GSRendererHW::OI_FFXII(GSTexture* rt, GSTexture* ds, GSTextureCache::Source { int x = (v->XYZ.X - ox) >> 4; int y = (v->XYZ.Y - oy) >> 4; - + + if (x >= 448 || y >= (int)lines) return false; // sigh + video[(y << 8) + (y << 7) + (y << 6) + x] = v->RGBAQ.u32[0]; }