Revert "chest trap write lock when shuffling the map"

This reverts commit 1db0dba76c.
This commit is contained in:
Image 2020-04-14 16:43:50 -04:00
parent c33262bc56
commit aed4f20a22

View file

@ -66,10 +66,7 @@ bool ChestTrapList::GetNextChestTrap(ChestTrap::ChestTrapInfo* cti) {
{
MChestTrapList.releasereadlock(__FUNCTION__, __LINE__);
//re-shuffle the map, we reached the end
MChestTrapList.writelock(__FUNCTION__, __LINE__);
shuffleMap(this);
MChestTrapList.releasewritelock(__FUNCTION__, __LINE__);
}
else
MChestTrapList.releasereadlock(__FUNCTION__, __LINE__);