Fix crash with invalid weapons (#1531)

* Fix crash with invalid weapons

Only affects us if we have a null weapon
also fixes t-posing

* Update Warp.cpp
This commit is contained in:
braaaap master 2021-08-17 09:31:01 -05:00 committed by GitHub
parent 06f4c0d2aa
commit b52b836ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -620,6 +620,8 @@ void warpLogic()
return;
if (CE_BAD(LOCAL_E) || !LOCAL_E->m_bAlivePlayer())
return;
if (CE_BAD(LOCAL_W))
return;
// Handle minigun in rapidfire
handleMinigun();