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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

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