Skip to content

Commit

Permalink
cloning: make invalid entities an actual script error and not a trace
Browse files Browse the repository at this point in the history
  • Loading branch information
blattersturm committed Oct 3, 2018
1 parent 1d59457 commit 031bf28
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1160,7 +1160,7 @@ static InitFunction initFunction([]()

if (!entity)
{
trace("Tried to access invalid entity.\n");
throw std::runtime_error(va("Tried to access invalid entity: %d", id));

context.SetResult(defaultValue);
return;
Expand Down

0 comments on commit 031bf28

Please sign in to comment.