diff --git a/src/CoordCache.h b/src/CoordCache.h index f670bba48e..0b3116bd09 100644 --- a/src/CoordCache.h +++ b/src/CoordCache.h @@ -139,7 +139,7 @@ public: int squareDistance(T const * thing, int x, int y) const { - cache_type::const_iterator it = data_.find(thing); + typename cache_type::const_iterator it = data_.find(thing); if (it == data_.end()) return 1000000; return it->second.squareDistance(x, y);