Jump to content
  • 0
bWolfie

Where can I find the commit for getvariableofpc()

Question

Hi, I want to know where I can find the commit for adding of getvariableofpc() script command. I am running old version of Herc (2016) and want to add this to my source.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

 

Thanks! Works.

 

Now I have a second question for anybody who may know.

How come # variable is on the excluded list? Would there be issues if I removed it from here?

 

 

    switch (*name)
    {
    case '#':
    case '$':
    case '.':
    case '\'':
        ShowError("script:getvariableofpc: illegal scope (not pc variable)\n");
        script->reportdata(data);
        script_pushnil(st);
        st->state = END;
        return false;
    }

Share this post


Link to post
Share on other sites
  • 0

 

 

Thanks! Works.

 

Now I have a second question for anybody who may know.

How come # variable is on the excluded list? Would there be issues if I removed it from here?

 

    switch (*name)
    {
    case '#':
    case '$':
    case '.':
    case '\'':
        ShowError("script:getvariableofpc: illegal scope (not pc variable)\n");
        script->reportdata(data);
        script_pushnil(st);
        st->state = END;
        return false;
    }
https://github.com/HerculesWS/Hercules/commit/03f416eda0b0d1aeef03516863e11916e75660cd

It was fixed later on.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.