mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10346] Fixed crash in .send items
Also fixed some missed cases from prev. typo fix.
This commit is contained in:
parent
29281d476a
commit
3c5da27442
3 changed files with 5 additions and 5 deletions
|
|
@ -88,7 +88,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||||
{ NULL, 0, false, NULL, "", NULL }
|
{ NULL, 0, false, NULL, "", NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
static ChatCommand achievementCreateriaCommandTable[] =
|
static ChatCommand achievementCriteriaCommandTable[] =
|
||||||
{
|
{
|
||||||
{ "add", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCriteriaAddCommand, "", NULL },
|
{ "add", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCriteriaAddCommand, "", NULL },
|
||||||
{ "remove", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCriteriaRemoveCommand,"", NULL },
|
{ "remove", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCriteriaRemoveCommand,"", NULL },
|
||||||
|
|
@ -97,7 +97,7 @@ ChatCommand * ChatHandler::getCommandTable()
|
||||||
|
|
||||||
static ChatCommand achievementCommandTable[] =
|
static ChatCommand achievementCommandTable[] =
|
||||||
{
|
{
|
||||||
{ "createria", SEC_ADMINISTRATOR, true, NULL, "", achievementCreateriaCommandTable },
|
{ "criteria", SEC_ADMINISTRATOR, true, NULL, "", achievementCriteriaCommandTable },
|
||||||
{ "add", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementAddCommand, "", NULL },
|
{ "add", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementAddCommand, "", NULL },
|
||||||
{ "remove", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementRemoveCommand, "", NULL },
|
{ "remove", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementRemoveCommand, "", NULL },
|
||||||
{ "", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCommand, "", NULL },
|
{ "", SEC_ADMINISTRATOR, true, &ChatHandler::HandleAchievementCommand, "", NULL },
|
||||||
|
|
|
||||||
|
|
@ -6464,8 +6464,8 @@ bool ChatHandler::HandleSendItemsCommand(char* args)
|
||||||
// parse item str
|
// parse item str
|
||||||
uint32 item_id = 0;
|
uint32 item_id = 0;
|
||||||
uint32 item_count = 1;
|
uint32 item_count = 1;
|
||||||
if (sscanf(itemStr, "%u:%u", item_id, item_count) != 2)
|
if (sscanf(itemStr, "%u:%u", &item_id, &item_count) != 2)
|
||||||
if (sscanf(itemStr, "%u", item_id) != 1)
|
if (sscanf(itemStr, "%u", &item_id) != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if(!item_id)
|
if(!item_id)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10345"
|
#define REVISION_NR "10346"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue