通常店舗内ではセーブはできないが、auto_debug_save オプションが ON のとき店舗内に
居るにも関わらずセーブが実行されている。
デバッグ用セーブファイルとはいえ、通常では想定されていないタイミングでのセーブ実行であ
るためおかしな動作の原因となる事も考えられるため、店舗内ではセーブが実行されないように
修正する。
void InputKeyRequestor::input_command()
{
while (true) {
- if (!macro_running() && !command_new && auto_debug_save && (!inkey_next || *inkey_next == '\0')) {
+ if (!this->shopping && !macro_running() && !command_new && auto_debug_save && (!inkey_next || *inkey_next == '\0')) {
save_player(this->player_ptr, SaveType::DEBUG);
}