diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-07-11 00:12:09 +0300 |
commit | 4fbb944f132eb886a6f5b350e5a14a4fe380aacf (patch) | |
tree | 6df2ed96430610ee7c35a7ca4902bbdade0e8e34 /src/gui/windows/skilldialog.cpp | |
parent | 1dc012a3bb44218778568e8f80c4e9b445802195 (diff) | |
download | ManaVerse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.gz ManaVerse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.bz2 ManaVerse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.tar.xz ManaVerse-4fbb944f132eb886a6f5b350e5a14a4fe380aacf.zip |
Add missing checks into gui.
Diffstat (limited to 'src/gui/windows/skilldialog.cpp')
-rw-r--r-- | src/gui/windows/skilldialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/skilldialog.cpp b/src/gui/windows/skilldialog.cpp index 8997220f1..89b614e8d 100644 --- a/src/gui/windows/skilldialog.cpp +++ b/src/gui/windows/skilldialog.cpp @@ -337,7 +337,7 @@ void SkillDialog::loadXmlFile(const std::string &fileName) ? 0 : XML::getProperty(node, "level", 0); SkillData *data = skill->getData(level); if (!data) - data = new SkillData(); + data = new SkillData; data->name = name; data->setIcon(icon); |