Skip to content
Snippets Groups Projects
Commit 9667c287 authored by dg's avatar dg
Browse files

fix crash

git-svn-id: http://svn.net-core.org/repos/t-engine4@725 51575b47-30f0-44d4-a5cc-537603b46e54
parent 34b0f982
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,7 @@ static bool map_opaque(void *m, int x, int y)
if (fov->cache)
{
if (x < 0 || y < 0 || x >= fov->cache->w || y >= fov->cache->h) return TRUE;
return fov->cache->cache[x + y * fov->cache->w];
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment