From 52bd9a771e2b94cec2491c97f418cc51d725d5b8 Mon Sep 17 00:00:00 2001 From: joschiwald Date: Mon, 3 Nov 2014 19:11:14 +0100 Subject: Core/NetworkIO: implemented undelete opcodes and moved char create/delete packets to new packet classes --- src/server/scripts/Commands/cs_character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Commands') diff --git a/src/server/scripts/Commands/cs_character.cpp b/src/server/scripts/Commands/cs_character.cpp index cfde57f3184..0b351e310f4 100644 --- a/src/server/scripts/Commands/cs_character.cpp +++ b/src/server/scripts/Commands/cs_character.cpp @@ -105,7 +105,7 @@ public: if (isNumeric(searchString.c_str())) { stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHAR_DEL_INFO_BY_GUID); - stmt->setUInt64(0, uint32(atoi(searchString.c_str()))); + stmt->setUInt64(0, strtoull(searchString.c_str(), nullptr, 10)); result = CharacterDatabase.Query(stmt); } // search by name @@ -205,7 +205,7 @@ public: // check character count uint32 charcount = AccountMgr::GetCharactersCount(delInfo.accountId); - if (charcount >= 10) + if (charcount >= sWorld->getIntConfig(CONFIG_CHARACTERS_PER_REALM)) { handler->PSendSysMessage(LANG_CHARACTER_DELETED_SKIP_FULL, delInfo.name.c_str(), delInfo.guid.ToString().c_str(), delInfo.accountId); return; -- cgit v1.2.3