Moved client language detection to be earlier (on connect) (bug 3714, r=psychonic).

This commit is contained in:
GoD-Tony
2011-10-15 12:07:55 -04:00
parent 7f8c4eff39
commit 4b0373408d
3 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ static cell_t sm_SetClientLanguage(IPluginContext *pContext, const cell_t *param
{
IGamePlayer *player = playerhelpers->GetGamePlayer(params[1]);
if (!player || !player->IsInGame())
if (!player || !player->IsConnected())
{
return pContext->ThrowNativeError("Invalid client index %d", params[1]);
}