From 3a1256ecb8f04083f3097e25469c5ec30dbd202c Mon Sep 17 00:00:00 2001 From: huanzai <857763401@qq.com> Date: Sat, 10 Oct 2015 12:28:07 +0800 Subject: [PATCH] Update DetourTileCache.cpp wrong type of return value --- DetourTileCache/Source/DetourTileCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DetourTileCache/Source/DetourTileCache.cpp b/DetourTileCache/Source/DetourTileCache.cpp index 9d9e7dd..874affd 100644 --- a/DetourTileCache/Source/DetourTileCache.cpp +++ b/DetourTileCache/Source/DetourTileCache.cpp @@ -350,7 +350,7 @@ dtStatus dtTileCache::removeTile(dtCompressedTileRef ref, unsigned char** data, } -dtObstacleRef dtTileCache::addObstacle(const float* pos, const float radius, const float height, dtObstacleRef* result) +dtStatus dtTileCache::addObstacle(const float* pos, const float radius, const float height, dtObstacleRef* result) { if (m_nreqs >= MAX_REQUESTS) return DT_FAILURE | DT_BUFFER_TOO_SMALL; @@ -384,7 +384,7 @@ dtObstacleRef dtTileCache::addObstacle(const float* pos, const float radius, con return DT_SUCCESS; } -dtObstacleRef dtTileCache::removeObstacle(const dtObstacleRef ref) +dtStatus dtTileCache::removeObstacle(const dtObstacleRef ref) { if (!ref) return DT_SUCCESS;