Skip to content

Commit

Permalink
Dialog answer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvet committed Feb 12, 2025
1 parent 16b99d5 commit 8ebc18d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Client/Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3368,7 +3368,7 @@ auto FOClient::CustomCall(string_view command, string_view separator) -> string
}
else if (cmd == "DialogAnswer" && args.size() >= 4) {
const auto is_cr = strex(args[1]).toBool();
const auto cr_id = is_cr ? ident_t {strex(args[2]).toUInt()} : ident_t {};
const auto cr_id = is_cr ? ident_t {strex(args[2]).toInt64()} : ident_t {};
const auto dlg_pack_id = is_cr ? hstring() : ResolveHash(strex(args[2]).toUInt());
const auto answer_index = static_cast<uint8>(strex(args[3]).toUInt());

Expand Down

0 comments on commit 8ebc18d

Please sign in to comment.