Core: Fix warnings

(cherry picked from commit 48d47998d9b4e5a234d4b2489f2954eded8dcbf0)

Conflicts:
	src/server/game/Entities/Object/Object.cpp