openkore
openkore copied to clipboard
[bug] Task SitStand infinity looping
- 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:
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