fix inability to save 1.1.8 .dmf

This commit is contained in:
tildearrow 2023-06-19 23:29:06 -05:00
parent b8e3e7858e
commit 2e469396b1
1 changed files with 2 additions and 1 deletions

View File

@ -5683,7 +5683,8 @@ SafeWriter* DivEngine::saveFur(bool notPrimary, bool newPatternFormat) {
SafeWriter* DivEngine::saveDMF(unsigned char version) {
// fail if version is not supported
if (version<24 || version>26) {
if (version>26) version=26;
if (version<24) {
logE("cannot save in this version!");
lastError="invalid version to save in! this is a bug!";
return NULL;