From 91dfec4ef72ffc31330cb42218f806da97b9d130 Mon Sep 17 00:00:00 2001 From: Freeman-AM Date: Wed, 8 Oct 2014 15:03:51 +0200 Subject: [PATCH] Statsx: Replace len hardcoded contents by charsmax --- plugins/cstrike/statsx.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 6bc985bf..d3603a6d 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1584,7 +1584,7 @@ endround_stats() public eventTeamScore() { new sTeamID[1 + 1], iTeamScore - read_data(1, sTeamID, 1) + read_data(1, sTeamID, charsmax(sTeamID)) iTeamScore = read_data(2) g_izTeamEventScore[(sTeamID[0] == 'C') ? 1 : 0] = iTeamScore @@ -1637,7 +1637,7 @@ public end_game_stats() public eventSpecMode(id) { new sData[12] - read_data(2, sData, 11) + read_data(2, sData, charsmax(sData)) g_izSpecMode[id] = (sData[10] == '2') return PLUGIN_CONTINUE