Skip to content

Commit

Permalink
fixed talkactions with separator not working (otland#4004)
Browse files Browse the repository at this point in the history
No need to use pugi::cast let's just use as_string
  • Loading branch information
MillhioreBT committed Mar 11, 2022
1 parent 816951e commit cf28d1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/talkaction.cpp
Expand Up @@ -143,7 +143,7 @@ bool TalkAction::configureEvent(const pugi::xml_node& node)

pugi::xml_attribute separatorAttribute = node.attribute("separator");
if (separatorAttribute) {
separator = pugi::cast<char>(separatorAttribute.value());
separator = separatorAttribute.as_string();
}

for (auto word : explodeString(wordsAttribute.as_string(), ";")) {
Expand Down

0 comments on commit cf28d1c

Please sign in to comment.