diff --git a/source/Entity/Player.cpp b/source/Entity/Player.cpp index dc1ba772..d278821a 100644 --- a/source/Entity/Player.cpp +++ b/source/Entity/Player.cpp @@ -274,7 +274,10 @@ void CPlayer::SetName(CSStr name) const // Validate the managed identifier Validate(); // Perform the requested operation - _Func->SetPlayerName(m_ID, name); + if (_Func->SetPlayerName(m_ID, name) == vcmpErrorInvalidName) + { + STHROWF("The specified name is invalid"); + } } // ------------------------------------------------------------------------------------------------