I added the new skill select but during the compilation I have this warning and I would prefer to fix it if possible
Bitte melden Sie sich an, um diesen Link zu sehen.
this is the code cmd_general.cpp
Code
- #ifdef ENABLE_SKILL_SELECT_FEATURE
- ACMD(do_selectskill_open)
- {
- if (!ch)
- return;
- if (ch->GetSkillGroup())
- return;
- ch->ChatPacket(CHAT_TYPE_COMMAND, "selectskill_open");
- }
- ACMD(do_selectskill_select)
- {
- if (!ch)
- return;
- if (ch->GetSkillGroup())
- return;
- char arg1[256];
- one_argument(argument, arg1, sizeof(arg1));
- if (!*arg1)
- return;
- BYTE skill_group = 0;
- str_to_number(skill_group, arg1);
- if (skill_group)
- ch->SetSkillGroup(skill_group);
- ch->ClearSkill();
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("skill_path_selected"));
- ch->UpdatePacket();
- }
- #endif
EDIT:
I should have fixed it with this change