[Scummvm-cvs-logs] scummvm master -> e06327e81aee35b9a523122637f79c9d0530c0bc

dreammaster dreammaster at scummvm.org
Sun Oct 19 00:28:00 CEST 2014


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:
e06327e81a MADS: Minor clean up of sprite set removal


Commit: e06327e81aee35b9a523122637f79c9d0530c0bc
    https://github.com/scummvm/scummvm/commit/e06327e81aee35b9a523122637f79c9d0530c0bc
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2014-10-18T18:27:07-04:00

Commit Message:
MADS: Minor clean up of sprite set removal

Changed paths:
    engines/mads/sprites.cpp



diff --git a/engines/mads/sprites.cpp b/engines/mads/sprites.cpp
index 6cb55aa..fd73930 100644
--- a/engines/mads/sprites.cpp
+++ b/engines/mads/sprites.cpp
@@ -404,9 +404,9 @@ void SpriteSets::remove(int idx) {
 			delete (*this)[idx];
 			(*this)[idx] = nullptr;
 		} else {
-			while (size() > 0 && (*this)[size() - 1] == nullptr) {
+			do {
 				remove_at(size() - 1);
-			}
+			} while (size() > 0 && (*this)[size() - 1] == nullptr);
 		}
 
 		if (_assetCount > 0)






More information about the Scummvm-git-logs mailing list