diff --git a/server/gameserver/batchsync.cc b/server/gameserver/batchsync.cc index 53d0b36f..776aaedd 100644 --- a/server/gameserver/batchsync.cc +++ b/server/gameserver/batchsync.cc @@ -23,6 +23,9 @@ BatchSync::~BatchSync() void BatchSync::AddGlobalObject(Creature* c) { + if (c->IsOb()) { + return; + } if (global_object_hash_.find(c->GetUniId()) != global_object_hash_.end()) { abort(); } @@ -64,6 +67,9 @@ void BatchSync::RemoveGlobalObject(int obj_uniid) void BatchSync::AddTeam(Team* team) { + if (team->IsViewTeam()) { + return; + } if (team_hash_.find(team) != team_hash_.end()) { abort(); }