From 53292a99a2214a5e423b5f8f4da780cab2fd106d Mon Sep 17 00:00:00 2001 From: Kinglykrab Date: Fri, 28 Aug 2015 15:15:19 -0400 Subject: [PATCH] Fixed #npcedit rangedtype. --- zone/command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/command.cpp b/zone/command.cpp index 75dec2b62..144fada08 100644 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -6243,7 +6243,7 @@ void command_npcedit(Client *c, const Seperator *sep) if (strcasecmp(sep->arg[1], "rangedtype") == 0) { c->Message(15,"NPCID %u now has a ranged type of %i.", npcTypeID, atoi(sep->argplus[2])); - std::string query = StringFormat("UPDATE npc_types SET rangedtype = %i WHERE id = %i", atoi(sep->argplus[2]), npcTypeID); + std::string query = StringFormat("UPDATE npc_types SET ranged_type = %i WHERE id = %i", atoi(sep->argplus[2]), npcTypeID); database.QueryDatabase(query); return; }