mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-08 12:23:21 +00:00
Re-add import
This commit is contained in:
parent
6902a8f744
commit
f8eb9909f2
3 changed files with 3 additions and 2 deletions
|
@ -401,12 +401,12 @@ enum struct PlayerPropData {
|
|||
void SetItemBuffer(ArrayList list, int flags = IMF_NoChange) {
|
||||
// Cleanup previous buffer if exist
|
||||
this.itemBuffer = list;
|
||||
if(flags != IMF_NoChange) {
|
||||
if(flags != view_as<int>(IMF_NoChange)) {
|
||||
this.bufferFlags = flags;
|
||||
}
|
||||
}
|
||||
void ClearItemBuffer() {
|
||||
if(this.itemBuffer != null && this.bufferFlags & IMF_DeleteAfterUse) {
|
||||
if(this.itemBuffer != null && this.bufferFlags & view_as<int>(IMF_DeleteAfterUse)) {
|
||||
PrintToServer("ClearItemBuffer(): arraylist deleted.");
|
||||
delete this.itemBuffer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue