Skip to content

Commit

Permalink
Fixed "Not called from inside a native function" bug
Browse files Browse the repository at this point in the history
Thanks TR1D
  • Loading branch information
ntoxin66 committed Sep 17, 2017
1 parent 812a31c commit 723fd9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified plugins/dynamic.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions scripting/dynamic.sp
Expand Up @@ -60,7 +60,7 @@ public Plugin myinfo =
name = "Dynamic",
author = "Neuro Toxin",
description = "Shared Dynamic Objects for Sourcepawn",
version = "0.0.29",
version = "0.0.30",
url = "https://forums.alliedmods.net/showthread.php?t=270519"
}

Expand Down Expand Up @@ -157,7 +157,7 @@ stock int _Dynamic_Initialise(Handle plugin, int blocksize=64, int startsize=0,

stock bool _Dynamic_Dispose(DynamicObject dynamic, bool disposemembers, bool reuse=false, int startsize=0, bool fromnative=true)
{
if (!dynamic.IsValid(true))
if (!_Dynamic_IsValid(dynamic.Index, false, fromnative))
return false;

int blocksize = dynamic.BlockSize;
Expand Down

0 comments on commit 723fd9e

Please sign in to comment.