Core/Housing: load Initiative bridge through script loader

This commit is contained in:
Gexo91
2026-09-12 19:42:40 +03:00
parent 339edb7618
commit a9ae24d909
@@ -3,18 +3,19 @@
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
* Free Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "HousingInitiativeCriteria.h"
// This is where scripts' loading functions should be declared:
// The name of this function should match:
@@ -59,4 +60,9 @@ void AddCustomScripts()
AddCustom_playerscript();
AddLfgSoloScripts();
// Housing Initiative packet/world hooks are ScriptMgr scripts and must be
// created while the Custom script context is active. Registering them from
// worldserver startup bypasses ScriptMgr's context and triggers an assertion.
Housing::RegisterInitiativeCriteriaBridge();
}