Re-add import

This commit is contained in:
Jackzie 2024-09-25 12:31:00 -05:00
parent 6902a8f744
commit f8eb9909f2
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View file

@ -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;
}

View file

@ -31,6 +31,7 @@ ConVar enabledBlacklist;
#include <editor/editor.sp>
#include <editor/props/base.sp>
#include <editor/natives.sp>
#include <editor>
public Plugin myinfo = {
name = "L4D2 Hats & Editor",