You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exhaustible weapons (ItemInfo.iFlags & ITEM_FLAG_EXHAUSTIBLE) refer to a temporary string for the classname. This causes problems when you try to pick up dropped instances of these weapons. To fix this, go to CASItemRegistry::RegisterItem and change the following line:
Exhaustible weapons (
ItemInfo.iFlags
&ITEM_FLAG_EXHAUSTIBLE
) refer to a temporary string for the classname. This causes problems when you try to pick up dropped instances of these weapons. To fix this, go toCASItemRegistry::RegisterItem
and change the following line:UTIL_PrecacheOtherWeapon( szName.CStr() );
To:
UTIL_PrecacheOtherWeapon( ALLOC_STRING( szName.CStr() ) );
This will ensure it uses a string that is valid for the duration of the map.
The text was updated successfully, but these errors were encountered: