Browse Source

fix db query typo

Emagi 1 year ago
parent
commit
5be3aa11ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      EQ2/source/WorldServer/Commands/Commands.cpp

+ 1 - 1
EQ2/source/WorldServer/Commands/Commands.cpp

@@ -1496,7 +1496,7 @@ bool Commands::SetSpawnCommand(Client* client, Spawn* target, int8 type, const c
 					if(target->IsNPC()) {
 						if(target->GetDatabaseID()) {
 							Query spawnNPCQuery;					
-							spawnNPCQuery.AddQueryAsync(0, &database, Q_INSERT, "update spawn_npc set attack_type=%u where id=%u", new_value, target->GetDatabaseID());
+							spawnNPCQuery.AddQueryAsync(0, &database, Q_INSERT, "update spawn_npcs set attack_type=%u where id=%u", new_value, target->GetDatabaseID());
 						} else if(client) {
 							client->Message(CHANNEL_COLOR_RED, "Invalid spawn to update the database (NPC only) or no database id for the NPC present.");
 						}