[Scummvm-git-logs] scummvm master -> dfdd6b2f6caa154d3f3ad847261dfc3ce208b989

dreammaster noreply at scummvm.org
Tue May 23 03:55:23 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
dfdd6b2f6c XEEN: fix behavior when deleting all the characters


Commit: dfdd6b2f6caa154d3f3ad847261dfc3ce208b989
    https://github.com/scummvm/scummvm/commit/dfdd6b2f6caa154d3f3ad847261dfc3ce208b989
Author: Alexander Izmailov (yarolig at gmail.com)
Date: 2023-05-22T20:54:31-07:00

Commit Message:
XEEN: fix behavior when deleting all the characters

Changed paths:
    engines/mm/xeen/dialogs/dialogs_create_char.cpp


diff --git a/engines/mm/xeen/dialogs/dialogs_create_char.cpp b/engines/mm/xeen/dialogs/dialogs_create_char.cpp
index 7692b10f62a..cb447cf02ee 100644
--- a/engines/mm/xeen/dialogs/dialogs_create_char.cpp
+++ b/engines/mm/xeen/dialogs/dialogs_create_char.cpp
@@ -84,7 +84,7 @@ void CreateCharacterDialog::execute() {
 			}
 			charIndex = 0;
 
-			if (freeCharList.size() == XEEN_TOTAL_CHARACTERS)
+			if (freeCharList.size() == 0)
 				break;
 
 			// Get and race and sex for the given character




More information about the Scummvm-git-logs mailing list