Add another assert to track down an issue where variable gets infinity value

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-19 23:48:10 +02:00
parent d674660539
commit cbf7d15947
@@ -280,6 +280,7 @@ namespace VMAP
if (instanceTree->second->GetLocationInfo(pos, info)) if (instanceTree->second->GetLocationInfo(pos, info))
{ {
floor = info.ground_Z; floor = info.ground_Z;
ASSERT(floor < std::numeric_limits<float>::max());
type = info.hitModel->GetLiquidType(); type = info.hitModel->GetLiquidType();
if (ReqLiquidType && !(type & ReqLiquidType)) if (ReqLiquidType && !(type & ReqLiquidType))
return false; return false;