Skip to content

Commit

Permalink
fix loading magic scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
vilarion committed Jul 20, 2011
1 parent 402ca45 commit f3d8f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/SpellTable.cpp
Expand Up @@ -62,9 +62,9 @@ void SpellTable::reload() {
itr != results.end(); ++itr) {
spellid = (uint32_t)((*itr)["spl_spellid"].as<uint32_t>());
spell.magictype = (uint8_t)((*itr)["spl_magictype"].as<int16_t>());
spell.scriptname = (*itr)["spl_magictype"].as<std::string>();

if (!spell.scriptname.empty()) {
if (!((*itr)["spl_scriptname"].is_null())) {
spell.scriptname = (*itr)["spl_scriptname"].as<std::string>();
try {
boost::shared_ptr<LuaMagicScript> script(new LuaMagicScript(spell.scriptname, spellid));
spell.script = script;
Expand Down

0 comments on commit f3d8f3b

Please sign in to comment.