Changeset 3160
- Timestamp:
- 02/08/2010 03:37:43 PM (4 weeks ago)
- Location:
- trunk/src/arcemu-world
- Files:
-
- 3 modified
-
GroupHandler.cpp (modified) (1 diff)
-
MapCell.cpp (modified) (3 diffs)
-
MapCell.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/arcemu-world/GroupHandler.cpp
r3159 r3160 105 105 player->GetSession()->SendPacket(&data); 106 106 107 uint32 gtype = 0; 108 if(group) 109 gtype = group->GetGroupType(); 110 111 SendPartyCommandResult(_player, gtype, membername, ERR_PARTY_NO_ERROR); 107 SendPartyCommandResult(_player, 0, membername, ERR_PARTY_NO_ERROR); 112 108 113 109 // 16/08/06 - change to guid to prevent very unlikely event of a crash in deny, etc -
trunk/src/arcemu-world/MapCell.cpp
r3131 r3160 41 41 _unloadpending=false; 42 42 _objects.clear(); 43 objects_iterator = _objects.begin(); 43 44 } 44 45 … … 55 56 if(obj->IsPlayer()) 56 57 --_playerCount; 58 59 if(objects_iterator != _objects.end() && (*objects_iterator) == obj) 60 ++objects_iterator; 57 61 58 62 _objects.erase(obj); … … 129 133 130 134 //This time it's simpler! We just remove everything :) 131 for( itr = _objects.begin(); itr != _objects.end(); )135 for(objects_iterator = _objects.begin(); objects_iterator != _objects.end(); ) 132 136 { 133 137 count++; 134 138 135 Object *obj = (* itr);136 137 itr++;139 Object *obj = (*objects_iterator); 140 141 objects_iterator++; 138 142 139 143 //zack : we actually never set this to null. Useless check for lucky memory corruption hit. -
trunk/src/arcemu-world/MapCell.h
r3131 r3160 73 73 74 74 ObjectSet _respawnObjects; 75 ObjectSet::iterator objects_iterator;//required by MapCell::RemoveObjects() removing Creatures which will remove their guardians and corrupt itr. 75 76 76 77 private: