*Fix some crash bugs.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-25 17:53:05 -06:00
parent 8770a90bc6
commit ccde296fd3
9 changed files with 55 additions and 33 deletions
+9
View File
@@ -120,6 +120,15 @@ class TRINITY_DLL_DECL Grid
*/
template<class SPECIFIC_OBJECT> bool RemoveGridObject(SPECIFIC_OBJECT *obj, OBJECT_HANDLE hdl) { return i_container.template remove<SPECIFIC_OBJECT>(obj, hdl); }
bool NoWorldObjectInGrid() const
{
return i_objects.GetElements().isEmpty();
}
bool NoGridObjectInGrid() const
{
return i_container.GetElements().isEmpty();
}
private:
typedef typename ThreadModel::Lock Guard;