Skip to content
This repository was archived by the owner on Sep 24, 2023. It is now read-only.

Commit 2f5a34e

Browse files
committed
Clone and take ownership of a received entity SMM
1 parent 609f411 commit 2f5a34e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripting/level_keyvalues.sp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
#pragma newdecls required
1717

18-
#define PLUGIN_VERSION "0.1.0"
18+
#define PLUGIN_VERSION "0.1.1"
1919
public Plugin myinfo = {
2020
name = "Level KeyValues",
2121
author = "nosoop",
@@ -82,7 +82,7 @@ public int Native_GetKeysByHammerID(Handle plugin, int argc) {
8282

8383
public int Native_InsertEntity(Handle plugin, int argc) {
8484
StringMultiMap entity = GetNativeCell(1);
85-
g_MapEntities.Push(entity);
85+
g_MapEntities.Push(CloneHandle(entity));
8686
return;
8787
}
8888

0 commit comments

Comments
 (0)