From 478d5c8605e7248f0cb59f30f973844d81baba8b Mon Sep 17 00:00:00 2001 From: Mikko Mononen Date: Thu, 23 Feb 2012 17:11:02 +0000 Subject: [PATCH] Fix for Issue 194. --- DebugUtils/Source/DetourDebugDraw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DebugUtils/Source/DetourDebugDraw.cpp b/DebugUtils/Source/DetourDebugDraw.cpp index 8fa13fd..adc5d0c 100755 --- a/DebugUtils/Source/DetourDebugDraw.cpp +++ b/DebugUtils/Source/DetourDebugDraw.cpp @@ -512,7 +512,7 @@ static void debugDrawTileCachePortals(struct duDebugDraw* dd, const dtTileCacheL { const int idx = x+y*w; const int lh = (int)layer.heights[idx]; - if (h == 0xff) continue; + if (lh == 0xff) continue; for (int dir = 0; dir < 4; ++dir) {