fix rare aimbot-related segv crash
This commit is contained in:
parent
36d809c7b7
commit
30bba4ceb4
@ -282,7 +282,7 @@ CachedEntity* RetrieveBestTarget(bool aimkey_state) {
|
|||||||
|
|
||||||
// We dont have a target currently so we must find one, reset statuses
|
// We dont have a target currently so we must find one, reset statuses
|
||||||
foundTarget = false;
|
foundTarget = false;
|
||||||
target_last = -1;
|
target_last = nullptr;
|
||||||
|
|
||||||
// Book keeping vars
|
// Book keeping vars
|
||||||
float target_highest_score, scr;
|
float target_highest_score, scr;
|
||||||
@ -887,7 +887,7 @@ CachedEntity* CurrentTarget() {
|
|||||||
|
|
||||||
// Used for when you join and leave maps to reset aimbot vars
|
// Used for when you join and leave maps to reset aimbot vars
|
||||||
void Reset() {
|
void Reset() {
|
||||||
target_last = -1;
|
target_last = nullptr;
|
||||||
projectile_mode = false;
|
projectile_mode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user