Skip to content

Commit

Permalink
Fixed|ScriptedInfo: Always give a value for __file__ when running
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed May 14, 2013
1 parent a965c65 commit ea7e3d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doomsday/libdeng2/src/scriptsys/scriptedinfo.cpp
Expand Up @@ -316,6 +316,7 @@ DENG2_PIMPL(ScriptedInfo)
Value *evaluate(String const &source, Info::BlockElement const *context)
{
script.reset(new Script(source));
script->setPath(sourcePath); // where the source comes from
process.run(*script);
executeWithContext(context);
return process.context().evaluator().result().duplicate();
Expand Down

0 comments on commit ea7e3d0

Please sign in to comment.