mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[11080] Restore optional use delta arg in .modify reputation
This commit is contained in:
parent
3570dcf74e
commit
117991076d
2 changed files with 2 additions and 2 deletions
|
|
@ -1499,7 +1499,7 @@ bool ChatHandler::HandleModifyRepCommand(char* args)
|
|||
if (wrank.substr(0, wrankStr.size()) == wrankStr)
|
||||
{
|
||||
int32 delta;
|
||||
if (!ExtractInt32(&args, delta) || (delta < 0) || (delta > ReputationMgr::PointsInRank[r] -1))
|
||||
if (!ExtractOptInt32(&args, delta, 0) || (delta < 0) || (delta > ReputationMgr::PointsInRank[r] -1))
|
||||
{
|
||||
PSendSysMessage(LANG_COMMAND_FACTION_DELTA, (ReputationMgr::PointsInRank[r]-1));
|
||||
SetSentErrorMessage(true);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11079"
|
||||
#define REVISION_NR "11080"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue