From 1f43e69b4ce86bf0f03ed92a33fcf50e20bdd06a Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 10 May 2014 12:02:48 -0400 Subject: [PATCH] Updated with fix. --- zone/command.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zone/command.cpp b/zone/command.cpp index f0d282f52..7b16341e5 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -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]) == 0 ? "untargetable" : "targetable"); + c->Message(15, "NPCID %u is now %s.", c->GetTarget()->CastToNPC()->GetNPCTypeID(), atoi(sep->arg[2]) == 0 ? "targetable" : "untargetable"); 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); @@ -11716,4 +11716,3 @@ void command_merchantcloseshop(Client *c, const Seperator *sep) merchant->CastToNPC()->MerchantCloseShop(); } -