Raised This Month: $51 Target: $400
 12% 

New flag: TF2ITEMS_CLOSE_HANDLE


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-06-2012 , 12:22   New flag: TF2ITEMS_CLOSE_HANDLE
Reply With Quote #1

It'd be nice if there were a flag in TF2Items to automatically close the hItem handle (if it's not NULL). This would be useful for the TF2Items_OnGiveNamedItem callback, as SourcePawn can't close that handle inside the callback because it isn't used until the callback returns.

Side note: This doubles as a bug report, because TF2Items_OnGiveNamedItem will leak handles if this line is present in its handler:
PHP Code:
hItem TF2Items_CreateItem(any flags here); 
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-06-2012 at 12:24.
Powerlord is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode