Magic numbers cleanup:

- Replace many magic numbers with constants
- Use enum for vehicle flags/seat flags
- Correct structure for ItemRandomSuffixEntry

--HG--
branch : trunk
This commit is contained in:
Shocker committed 2010-09-28 08:21:51 +03:00
1 parent 192e972a59
commit 78803c9f09
44 files changed
+245 -194

No files matched your search

+1 -1
View File
@@ -889,7 +889,7 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
time_t mutetime = time_t (fields[7].GetUInt64());
locale = LocaleConstant (fields[8].GetUInt8());
if (locale >= MAX_LOCALE)
if (locale >= TOTAL_LOCALES)
locale = LOCALE_enUS;
uint32 recruiter = fields[9].GetUInt32();