aboutsummaryrefslogtreecommitdiff
path: root/src/mangosd/Master.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mangosd/Master.cpp')
-rw-r--r--src/mangosd/Master.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mangosd/Master.cpp b/src/mangosd/Master.cpp
index fd5259fa916..f175d4d82b0 100644
--- a/src/mangosd/Master.cpp
+++ b/src/mangosd/Master.cpp
@@ -474,6 +474,9 @@ void Master::clearOnlineAccounts()
"AND id IN (SELECT acctid FROM realmcharacters WHERE realmid = '%d')",realmID);
CharacterDatabase.Execute("UPDATE characters SET online = 0 WHERE online<>0");
+
+ // Battleground instance ids reset at server restart
+ CharacterDatabase.Execute("UPDATE characters SET bgid = 0 WHERE bgid<>0");
}
/// Handle termination signals