Fixed and optimized EXTRA_LOGS code

about 1700 lines of code manually checked
This commit is contained in:
Yehonal
2017-09-25 15:09:21 +02:00
parent e687d223ff
commit 7a0e6e7da2
17 changed files with 511 additions and 569 deletions

View File

@@ -121,8 +121,8 @@ bool AddonHandler::BuildAddonPacket(WorldPacket* Source, WorldPacket* Target)
uint32 count = 0;
*Target << uint32(count);
//if (AddOnPacked.rpos() != AddOnPacked.size())
#if defined(ENABLE_EXTRAS) && defined(ENABLE_EXTRA_LOGS)
if (AddOnPacked.rpos() != AddOnPacked.size())
sLog->outDebug(LOG_FILTER_NETWORKIO, "packet under read!");
#endif
}