Re: Server crashing since a few days
But when you set an attribute you don't have to set the number of attributes before, because the array of the attributes has anyway a size of 16.
The number is only needed after OnGiveNamedItem, so you could also check how many attributes are set, and set m_iCount to it. So why we need to set the number of attributes explicitly? |
Re: Server crashing since a few days
Quote:
In theory, you could tell how many are set by tracking the highest index of the TF2Items_SetAttribute calls on a handle... but if TF2Items ever gains the ability to read existing attributes this will... do unexpected things. |
| All times are GMT -4. The time now is 21:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.