From 76986880c9807894d29d933cfd9bed56516d410c Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 4 Apr 2015 16:40:01 +0200 Subject: Core/Misc: Fix issues reported by static analysis Coverity defect IDs: 1267938, 1267937, 1267933, 1267932, 1267929 --- src/server/collision/Management/VMapManager2.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/collision/Management/VMapManager2.cpp') diff --git a/src/server/collision/Management/VMapManager2.cpp b/src/server/collision/Management/VMapManager2.cpp index f85fceb7b39..f9fcff96ad2 100644 --- a/src/server/collision/Management/VMapManager2.cpp +++ b/src/server/collision/Management/VMapManager2.cpp @@ -236,9 +236,11 @@ namespace VMAP { floor = info.ground_Z; ASSERT(floor < std::numeric_limits::max()); + ASSERT(info.hitModel); type = info.hitModel->GetLiquidType(); // entry from LiquidType.dbc if (reqLiquidType && !(GetLiquidFlagsPtr(type) & reqLiquidType)) return false; + ASSERT(info.hitInstance); if (info.hitInstance->GetLiquidLevel(pos, info, level)) return true; } -- cgit v1.2.3