mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-26 02:07:26 +00:00
fix possible startup crash
This commit is contained in:
parent
ffa26e4105
commit
d84a8bb2c2
1 changed files with 2 additions and 4 deletions
|
@ -482,12 +482,10 @@ void UserSettings::load(bool doApply, const std::string &overrideFile)
|
|||
xml_action = xml_actionSet->FirstChildElement();
|
||||
while (xml_action)
|
||||
{
|
||||
std::string name = xml_action->Attribute("name");
|
||||
|
||||
if (!name.empty())
|
||||
const char *name = xml_action->Attribute("name");
|
||||
if (name && *name)
|
||||
{
|
||||
ActionInput *ai = control.actionSet.addActionInput(name);
|
||||
|
||||
ai->fromString(xml_action->Attribute("input"));
|
||||
}
|
||||
xml_action = xml_action->NextSiblingElement();
|
||||
|
|
Loading…
Reference in a new issue