View Single Post
  #1  
Old 01-14-2015, 07:03 PM
iluvseq
Sarnak
 
Join Date: Aug 2009
Location: Somewhere
Posts: 53
Default COMMITTED: Bug fix for #npcedit featuresave

The current code has an extra comma in the SQL for #npcedit featuresave which breaks this command.

The patch below fixes the SQL syntax by removing this extra comma, which in turn allows this command to function again.
Code:
diff --git a/zone/command.cpp b/zone/command.cpp
index a0b9ae6..00e1f61 100644
--- a/zone/command.cpp
+++ b/zone/command.cpp
@@ -6653,7 +6653,7 @@ void command_npcedit(Client *c, const Seperator *sep)
                                         "SET luclin_haircolor = %i, luclin_beardcolor = %i, "
                                         "luclin_hairstyle = %i, luclin_beard = %i, "
                                         "face = %i, drakkin_heritage = %i, "
-                                        "drakkin_tattoo = %i, drakkin_details = %i, "
+                                        "drakkin_tattoo = %i, drakkin_details = %i "
                                         "WHERE id = %i",
                                         target->GetHairColor(), target->GetBeardColor(),
                                         target->GetHairStyle(), target->GetBeard(),
Reply With Quote