Phil25 / RTD

Roll The Dice SourceMod plugin for Team Fortress 2
GNU General Public License v3.0
56 stars 20 forks source link

Frozen effect model might result in error when the player model's path is too long #115

Closed naydef closed 4 months ago

naydef commented 4 months ago

Diff in frozen.sp:

@@ -116,7 +116,7 @@ void Frozen_ApplyPerk(const int client, const Perk perk)
    // on a better frame. 0.2s from initialization seems like a good time.
    Cache[client].Delay(0.2, Frozen_ApplyPost);

-   char sClientModel[64], sValueBuffer[8];
+   char sClientModel[PLATFORM_MAX_PATH], sValueBuffer[8];
    float fPos[3], fAng[3];
    GetClientAbsOrigin(client, fPos);
    GetClientAbsAngles(client, fAng);
Phil25 commented 4 months ago

Fixed in 2.5.5, thanks for spotting this.