Update command.cpp

Removed an accidental repetition of atoi.
This commit is contained in:
KinglyKrab 2014-05-08 13:42:21 -04:00
parent ffa8e5ff62
commit e097722ec6

View File

@ -7291,7 +7291,7 @@ void command_npcedit(Client *c, const Seperator *sep)
{
char errbuf[MYSQL_ERRMSG_SIZE];
char *query = 0;
c->Message(15, "NPCID %u is now %s.", c->GetTarget()->CastToNPC()->GetNPCTypeID(), atoi(sep->arg[2])atoi(sep->arg[2]) == 0 ? "untargetable" : "targetable");
c->Message(15, "NPCID %u is now %s.", c->GetTarget()->CastToNPC()->GetNPCTypeID(), atoi(sep->arg[2]) == 0 ? "untargetable" : "targetable");
database.RunQuery(query, MakeAnyLenString(&query, "update npc_types set no_target_hotkey=%i where id=%i", atoi(sep->arg[2]), c->GetTarget()->CastToNPC()->GetNPCTypeID()), errbuf);
c->LogSQL(query);
safe_delete_array(query);