aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-05-16 14:14:54 +0200
committerMachiavelli <none@none>2010-05-16 14:14:54 +0200
commitcef21f6e39798aec93b4607a500f985ef9becd06 (patch)
tree78954a92b62241763798001055b18d7a340dd530 /src/game
parent437a5d90b227921f84ce9b9ed11047b27ed09f17 (diff)
Fix crash introduced in 8199 (5a30b77777b7)
--HG-- branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r--src/game/CharacterHandler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/CharacterHandler.cpp b/src/game/CharacterHandler.cpp
index 77364aa2657..066585175c4 100644
--- a/src/game/CharacterHandler.cpp
+++ b/src/game/CharacterHandler.cpp
@@ -470,14 +470,14 @@ void WorldSession::HandleCharCreateOpcode(WorldPacket & recv_data)
LoginDatabase.PExecute("INSERT INTO realmcharacters (numchars, acctid, realmid) VALUES (%u, %u, %u)", charcount, GetAccountId(), realmID);
pNewChar->CleanupsBeforeDelete();
- delete pNewChar; // created only to call SaveToDB()
-
+
data << (uint8)CHAR_CREATE_SUCCESS;
SendPacket(&data);
std::string IP_str = GetRemoteAddress();
sLog.outBasic("Account: %d (IP: %s) Create Character:[%s] (GUID: %u)", GetAccountId(), IP_str.c_str(), name.c_str(), pNewChar->GetGUIDLow());
sLog.outChar("Account: %d (IP: %s) Create Character:[%s] (GUID: %u)", GetAccountId(), IP_str.c_str(), name.c_str(), pNewChar->GetGUIDLow());
+ delete pNewChar; // created only to call SaveToDB()
}