BaseGuildManager::DBSetGuild()
Using quest::SetGuild() to change a character's guild ends up putting them in multiple guilds. From what I understand, this is because DBSetGuild() uses 'REPLACE INTO' in the query and the guild_members table doesn't have a PRIMARY KEY or UNIQUE index.
This is from the MySQL reference manual on REPLACE INTO: Quote:
|
This fixes the issue:
Code:
ALTER TABLE `guild_members` ADD UNIQUE INDEX `char_id`(`char_id`); |
All times are GMT -4. The time now is 07:18 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.