mirror of https://github.com/FWGS/hlsdk-xash3d
server: fix buffer overflow when spawning alien bot
model name is just really long here
This commit is contained in:
parent
acbb427288
commit
32930f8312
|
@ -103,7 +103,7 @@ class CBot : public CBasePlayer //Derive a bot class from CBasePlayer
|
|||
int wander_dir; // randomly wander left or right
|
||||
float f_pause_time; // timeout for periods when the bot pauses
|
||||
float f_find_item; // timeout for not looking for items
|
||||
char model_name[20];
|
||||
char model_name[64];
|
||||
int bot_model;
|
||||
int bot_skill; // bot skill level (0=very good, 4=very bad)
|
||||
float f_pain_time; // time when pain sound can be spoken
|
||||
|
|
Loading…
Reference in New Issue