Commit 5a954bcb authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[status] fix getCount function

parent 8b4f4805
...@@ -147,8 +147,11 @@ public: ...@@ -147,8 +147,11 @@ public:
/*! /*!
* \brief Returns the entity count for the given id. * \brief Returns the entity count for the given id.
*/ */
std::size_t getCount(const Id& id) std::size_t getCount(const Id& id) const
{ return count_[id.get()]; } {
const auto it = count_.find(id.get());
return it != count_.end() ? it->second : 0;
}
/*! /*!
* \brief Returns the overall entity count. * \brief Returns the overall entity count.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment