aboutsummaryrefslogtreecommitdiff
path: root/src/framework/GameSystem/Grid.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-25 17:53:05 -0600
committermegamage <none@none>2009-02-25 17:53:05 -0600
commitccde296fd3822898e8959c009211fe880a0429f7 (patch)
tree431667bbae9ca263b572a8d9fd07fb36edbf3472 /src/framework/GameSystem/Grid.h
parent8770a90bc6389d123a2716079bde40f43fc26357 (diff)
*Fix some crash bugs.
--HG-- branch : trunk
Diffstat (limited to 'src/framework/GameSystem/Grid.h')
-rw-r--r--src/framework/GameSystem/Grid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/framework/GameSystem/Grid.h b/src/framework/GameSystem/Grid.h
index a60b7306efb..fffa8120883 100644
--- a/src/framework/GameSystem/Grid.h
+++ b/src/framework/GameSystem/Grid.h
@@ -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;