Commit 2b4fa55f authored by sirlemonhead's avatar sirlemonhead Committed by Richard Gobeille
Browse files

SW: Prevent invalid array access in drawoverheadmap()

parent df7d573e
......@@ -5653,7 +5653,7 @@ SHOWSPRITE:
switch (spr->cstat & 48)
{
case 0: // Regular sprite
if (Player[p].PlayerSprite == j)
if (p >= 0 && Player[p].PlayerSprite == j)
{
ox = sprx - cposx;
oy = spry - cposy;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment