SaveTool: fix a condition.

This commit is contained in:
Guillaume Jacquemin 2022-07-06 17:22:55 +02:00
parent e61d4bba85
commit 6f2b19dbc3
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ void SaveTool::drawCustomArmourStyles() {
break; break;
case DCS_Save: case DCS_Save:
_modifiedBySaveTool = true; _modifiedBySaveTool = true;
if(_currentMass->writeArmourCustomStyle(i)) { if(!_currentMass->writeArmourCustomStyle(i)) {
_modifiedBySaveTool = false; _modifiedBySaveTool = false;
_queue.addToast(Toast::Type::Error, _currentMass->lastError()); _queue.addToast(Toast::Type::Error, _currentMass->lastError());
} }