[m2454] Fix crash due to bad compiler.

Based on cmangos/mangos-wotlk@0f2ff2f139

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>