Skip to content
Prev Previous commit
Next Next commit
Fixed ValueError message
  • Loading branch information
Ayuto committed May 1, 2019
commit fed7570b9d29a755baf8f320de4d0a70be6aa40b
2 changes: 1 addition & 1 deletion src/core/modules/players/players_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ boost::shared_ptr<PlayerWrapper> PlayerWrapper::__init__(unsigned int uiEntityIn
{
CBaseEntityWrapper* pEntity = (CBaseEntityWrapper*) ExcBaseEntityFromIndex(uiEntityIndex);
if (!pEntity->IsPlayer())
BOOST_RAISE_EXCEPTION(PyExc_ValueError, "Index '%d' is not a valid player.");
BOOST_RAISE_EXCEPTION(PyExc_ValueError, "Index '%d' is not a valid player.", uiEntityIndex);

return PlayerWrapper::wrap(pEntity->GetBaseEntity());
}
Expand Down