Skip to content

Commit aff3193

Browse files
committed
Fixed Juggernout restore model crash
1 parent d221da7 commit aff3193

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
161 Bytes
Binary file not shown.

addons/sourcemod/scripting/hosties/lastrequest.sp

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ char LR_C_sWeapon[MAXPLAYERS + 1][11][64];
8484
int LR_C_WeaponCount[MAXPLAYERS + 1] = {0, ...};
8585
int LR_C_FlashCounter[MAXPLAYERS + 1] = {0, ...};
8686

87-
char BeforeModel[MAXPLAYERS+1][PLATFORM_MAX_PATH],
87+
char BeforeModel[MAXPLAYERS+1][PLATFORM_MAX_PATH+1],
8888
g_sLastRequestPhrase[BASE_LR_Number][MAX_DISPLAYNAME_SIZE];
8989

9090
ConVar g_hRoundTime,
@@ -1352,7 +1352,7 @@ void CleanupLastRequest(int loser, int arrayIndex)
13521352
if (strlen(BeforeModel[LR_Player_Prisoner]) > 0)
13531353
{
13541354
SetEntityModel(LR_Player_Prisoner, BeforeModel[LR_Player_Prisoner]);
1355-
FormatEx(BeforeModel[LR_Player_Prisoner], sizeof(BeforeModel), "");
1355+
FormatEx(BeforeModel[LR_Player_Prisoner], sizeof(BeforeModel[]), "");
13561356
}
13571357
}
13581358
}
@@ -1367,7 +1367,7 @@ void CleanupLastRequest(int loser, int arrayIndex)
13671367
if (strlen(BeforeModel[LR_Player_Guard]) > 0)
13681368
{
13691369
SetEntityModel(LR_Player_Guard, BeforeModel[LR_Player_Guard]);
1370-
FormatEx(BeforeModel[LR_Player_Guard], sizeof(BeforeModel), "");
1370+
FormatEx(BeforeModel[LR_Player_Guard], sizeof(BeforeModel[]), "");
13711371
}
13721372
}
13731373
}
@@ -4015,8 +4015,8 @@ void InitializeGame(int iPartnersIndex)
40154015
{
40164016
if (GetEngineVersion() == Engine_CSGO)
40174017
{
4018-
GetEntPropString(LR_Player_Prisoner, Prop_Data, "m_ModelName", BeforeModel[LR_Player_Prisoner], sizeof(BeforeModel));
4019-
GetEntPropString(LR_Player_Guard, Prop_Data, "m_ModelName", BeforeModel[LR_Player_Guard], sizeof(BeforeModel));
4018+
GetEntPropString(LR_Player_Prisoner, Prop_Data, "m_ModelName", BeforeModel[LR_Player_Prisoner], sizeof(BeforeModel[]));
4019+
GetEntPropString(LR_Player_Guard, Prop_Data, "m_ModelName", BeforeModel[LR_Player_Guard], sizeof(BeforeModel[]));
40204020

40214021
if (g_cvSvSuit == INVALID_HANDLE)
40224022
g_cvSvSuit = FindConVar("mp_weapons_allow_heavyassaultsuit");

addons/sourcemod/scripting/sm_hosties_e.sp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
#pragma semicolon 1
4646

47-
#define PLUGIN_VERSION "5.0.4"
47+
#define PLUGIN_VERSION "5.0.5"
4848
#define PLUGIN_NAME "Hosties+"
4949
#define MAX_DISPLAYNAME_SIZE 64
5050
#define MAX_DATAENTRY_SIZE 5

0 commit comments

Comments
 (0)