Skip to content

Commit

Permalink
[10854] Fixed crash at .character erase command use.
Browse files Browse the repository at this point in the history
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
  • Loading branch information
mns authored and VladimirMangos committed Dec 11, 2010
1 parent 3f9f392 commit d026482
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/mangosd/CliRunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,13 +410,13 @@ bool ChatHandler::HandleCharacterDeletedOldCommand(char* args)
bool ChatHandler::HandleCharacterEraseCommand(char* args)
{
char* nameStr = ExtractLiteralArg(&args);
if (!*nameStr)
if (!nameStr)
return false;

Player* target;
ObjectGuid target_guid;
std::string target_name;
if (!ExtractPlayerTarget(&args, &target, &target_guid, &target_name))
if (!ExtractPlayerTarget(&nameStr, &target, &target_guid, &target_name))
return false;

uint32 account_id;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10853"
#define REVISION_NR "10854"
#endif // __REVISION_NR_H__

0 comments on commit d026482

Please sign in to comment.