mirror of
https://github.com/t5mat/crouchboostfix.git
synced 2025-12-07 10:28:36 +00:00
Add missing variable initialization
This commit is contained in:
parent
09d0490671
commit
3e9c91df13
@ -110,6 +110,7 @@ public void OnEntityCreated(int entity, const char[] classname)
|
|||||||
if (StrEqual(classname, "trigger_multiple") || push || StrEqual(classname, "trigger_gravity")) {
|
if (StrEqual(classname, "trigger_multiple") || push || StrEqual(classname, "trigger_gravity")) {
|
||||||
for (int i = 0; i < sizeof(g_clients); ++i) {
|
for (int i = 0; i < sizeof(g_clients); ++i) {
|
||||||
g_clients[i].touching[entity] = false;
|
g_clients[i].touching[entity] = false;
|
||||||
|
g_clients[i].endTouchFrame[entity] = -1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDKHook(entity, SDKHook_StartTouch, Hook_TriggerStartTouch);
|
SDKHook(entity, SDKHook_StartTouch, Hook_TriggerStartTouch);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user