Permalink
Browse files

Scripts/Commands: Fixed the command to restore a deleted character.

Thanks @vlad852
  • Loading branch information...
1 parent af00564 commit ecc2362c69e24b2afc762bc32d11453d537a84fb @Subv Subv committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/server/scripts/Commands/cs_character.cpp
@@ -224,7 +224,7 @@ class character_commandscript : public CommandScript
stmt = CharacterDatabase.GetPreparedStatement(CHAR_SEL_CHARACTER_NAME_DATA);
stmt->setUInt32(0, delInfo.lowGuid);
if (PreparedQueryResult result = CharacterDatabase.Query(stmt))
- sWorld->AddCharacterNameData(delInfo.lowGuid, delInfo.name, (*result)[2].GetUInt8(), (*result)[0].GetUInt8(), (*result)[1].GetUInt8(), (*result)[2].GetUInt8());
+ sWorld->AddCharacterNameData(delInfo.lowGuid, delInfo.name, (*result)[2].GetUInt8(), (*result)[0].GetUInt8(), (*result)[1].GetUInt8(), (*result)[3].GetUInt8());
}
static void HandleCharacterLevel(Player* player, uint64 playerGuid, uint32 oldLevel, uint32 newLevel, ChatHandler* handler)

1 comment on commit ecc2362

Please sign in to comment.