Core/Housing: load Initiative bridge through script loader
This commit is contained in:
@@ -3,18 +3,19 @@
|
|||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* 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
|
* 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
|
* Free Software Foundation; either version 2 of the License, or (at your option)
|
||||||
* option) any later version.
|
* any later version.
|
||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
* more details.
|
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along with
|
||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "HousingInitiativeCriteria.h"
|
||||||
|
|
||||||
// This is where scripts' loading functions should be declared:
|
// This is where scripts' loading functions should be declared:
|
||||||
|
|
||||||
// The name of this function should match:
|
// The name of this function should match:
|
||||||
@@ -59,4 +60,9 @@ void AddCustomScripts()
|
|||||||
|
|
||||||
AddCustom_playerscript();
|
AddCustom_playerscript();
|
||||||
AddLfgSoloScripts();
|
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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user