[Fix] m_info.txt の xtra フラグが正しく読めていない
* @val 値
*/
template <typename T>
-void info_set_value(T &arg, const std::string &val)
+void info_set_value(T &arg, const std::string &val, int base = 10)
{
- arg = static_cast<T>(std::stoi(val));
+ arg = static_cast<T>(std::stoi(val, nullptr, base));
}
m_ptr->spell_stat = stat->second;
- info_set_value(m_ptr->spell_xtra, tokens[3]);
+ info_set_value(m_ptr->spell_xtra, tokens[3], 16);
info_set_value(m_ptr->spell_type, tokens[4]);
info_set_value(m_ptr->spell_first, tokens[5]);
info_set_value(m_ptr->spell_weight, tokens[6]);