diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-17 21:45:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-17 21:45:33 +0300 |
commit | adc96cc9f4247ceafc5fde66055456494861b139 (patch) | |
tree | de2b3d96297bce39f7e487ba135116c5f2aaaf3e /src/progs/manaplus/actions/commands.cpp | |
parent | dc6de526dbdf0145fa3ac0a65d485f40b1722199 (diff) | |
download | manaverse-adc96cc9f4247ceafc5fde66055456494861b139.tar.gz manaverse-adc96cc9f4247ceafc5fde66055456494861b139.tar.bz2 manaverse-adc96cc9f4247ceafc5fde66055456494861b139.tar.xz manaverse-adc96cc9f4247ceafc5fde66055456494861b139.zip |
Remove default parameters from actormanager.cpp
Diffstat (limited to 'src/progs/manaplus/actions/commands.cpp')
-rw-r--r-- | src/progs/manaplus/actions/commands.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaplus/actions/commands.cpp index 985a17a5f..54b8c28bd 100644 --- a/src/progs/manaplus/actions/commands.cpp +++ b/src/progs/manaplus/actions/commands.cpp @@ -380,7 +380,8 @@ impHandler(setTarget) if ((actorManager == nullptr) || (localPlayer == nullptr)) return false; - Being *const target = actorManager->findNearestByName(event.args); + Being *const target = actorManager->findNearestByName(event.args, + ActorType::Unknown); if (target != nullptr) localPlayer->setTarget(target); return true; @@ -500,7 +501,8 @@ impHandler(navigateTo) if (args.empty()) return true; - Being *const being = actorManager->findBeingByName(args); + Being *const being = actorManager->findBeingByName(args, + ActorType::Unknown); if (being != nullptr) { localPlayer->navigateTo(being->getTileX(), being->getTileY()); |