DB/SAI: Fix one linking error and updated a few to use CMC "Combat Movement Control"
Core/Movement: Fixed possible invalid memory access
Fix typo
Merge pull request #11309 from Lartza/master

DB/SAI: Fix typo
Core/SmartAI: Fixed issue where ranged caster would switch to combat ready state between cast.
Core/AI: Some code cleanup
Core/SmartAI: Reset Actions will not be processed until creature reaches home.
Core/SmartAI: SMART_ACTION_UPDATE_TEMPLATE will no longer ignore the target type and force the source creature (creature only) to be updated; from now on it updates the given targets to the given entry (actionparam1)
DB/SAI: Fix an error in Bladespire Mystic SAI
Core/Movement: Fix invalid memory access

Fix the stack implementation used in MotionMaster and added few sanity checks to ensure no underflows will be made.

Valgrind log:
 Invalid read of size 8
  at : MotionMaster::top() const (MotionMaster.h:115)
  by : MotionMaster::pop() (MotionMaster.h:91)
  by : MotionMaster::~MotionMaster() (MotionMaster.cpp:74)
  by : Unit::~Unit() (Unit.cpp:296)
  by : Player::~Player() (Player.cpp:880)
  by : WorldSession::HandleCharCreateCallback(Trinity::AutoPtr<PreparedResultSet, ACE_Thread_Mutex>, CharacterCreateInfo*) (CharacterHandler.cpp:665)
  by : WorldSession::HandleCharCreateCallback(Trinity::AutoPtr<PreparedResultSet, ACE_Thread_Mutex>, CharacterCreateInfo*) (CharacterHandler.cpp:516)
Core/Player: Add another exception to questgiver spell casting.
Core/Misc: Fix some static analysis issues

Fix some static analysis issues about uninitialized values. Most of them are false positives, always initialized before being accessed, while some of them are real issues spotted by valgrind too.
Core/Misc: Fix some static analysis issues

Fix some static analysis issues about uninitialized values.
Core/AI: Fix an issue where the OnQuestAccept hooks were not called for auto-completed quests.

Fixes #11304
Core/Quests: Fix an issue where auto-completed quests would not be automatically completed if the quest was added through either the SmartAI action_type SMART_ACTION_ADD_QUEST, the spell effect SPELL_EFFECT_QUEST_START or the opcode CMSG_QUEST_CONFIRM_ACCEPT. Also fixes auto-complete quests in the SAI and opcode case not calling the AI hook.
Scripts: fix crash in spell_jokkum_scriptcast

Closes #11313
Merge branch 'master' of github.com:TrinityCore/TrinityCore