Scripts/MagistersTerrace: fix possible crash
Core/Misc: Fix gcc warnings
Core/Battleground: refactored BattlegroundScore
(original code by Machiavelli)
Scripts/Commands: fixed possible client crash with .go command
DB/SAI: Fix more runtime errors 

By dr-j
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into ghbb

Conflicts:
	src/server/game/Battlegrounds/Battleground.cpp
	src/server/game/Battlegrounds/Battleground.h
	src/server/game/Battlegrounds/BattlegroundMgr.cpp
	src/server/game/Globals/ObjectMgr.h
更新
更新