Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix addEvent scheduler values being passed by reference not value #4053

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

nekiro
Copy link
Member

@nekiro nekiro commented Mar 31, 2022

Fixes #4031

Apparently (from what I read on the internet) std::bind copies values, #4017 introduces usage of lambdas and this was changed to ref [&] and broke npcs and probably a lot more, so the solution is to bring back passing by value.

@nekiro nekiro changed the title Fix addEvent values being passed by value not reference Fix addEvent scheduler values being passed by value not reference Mar 31, 2022
@nekiro nekiro changed the title Fix addEvent scheduler values being passed by value not reference Fix addEvent scheduler values being passed by reference not value Mar 31, 2022
@ranisalt
Copy link
Member

😡

@ranisalt ranisalt merged commit bb41780 into master Mar 31, 2022
@ranisalt ranisalt deleted the nekiro-patch-1 branch March 31, 2022 17:26
Codinablack pushed a commit to Codinablack/forgottenserver that referenced this pull request Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

after recent updates, npc does not respond to hi
3 participants