openkore icon indicating copy to clipboard operation
openkore copied to clipboard

[bug] Task SitStand infinity looping

Open alisonrag opened this issue 5 years ago • 0 comments

  • Openkore version git: https://github.com/OpenKore/openkore/commit/5e8e3001b1afbfa426d0550122dfd64261c6f014
  • Server: All
  • Bug Report: Task SitStand lost char reference
  • Summary: Sometimes the Task SitStand lost the char reference and don't know if char is sitting/stand and enter in a infinity loop screenshot: image unknown

this was fixed in SitStand.pm changing from:

unless ($self->{mode} eq 'sit' xor $self->{actor}{sitting}) {

to:

unless ($self->{mode} eq 'sit' xor $char->{sitting}) {

my guess is, this task receive a copy of $char var and not a $char reference

alisonrag avatar Feb 10 '21 16:02 alisonrag