[Scummvm-git-logs] scummvm master -> 835671d10aee86e2484a341a1330a4adf5473479

criezy criezy at scummvm.org
Mon Jun 3 22:14:13 CEST 2019


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:
835671d10a STARTREK: Fix use of uninitialized variable


Commit: 835671d10aee86e2484a341a1330a4adf5473479
    https://github.com/scummvm/scummvm/commit/835671d10aee86e2484a341a1330a4adf5473479
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2019-06-03T21:13:00+01:00

Commit Message:
STARTREK: Fix use of uninitialized variable

Changed paths:
    engines/startrek/rooms/demon6.cpp


diff --git a/engines/startrek/rooms/demon6.cpp b/engines/startrek/rooms/demon6.cpp
index de3b4b4..c56ad6c 100644
--- a/engines/startrek/rooms/demon6.cpp
+++ b/engines/startrek/rooms/demon6.cpp
@@ -568,11 +568,10 @@ int Room::demon6ShowCaseProcessSelection(Sprite *sprites, Sprite *clickedSprite,
 		// does check the clock cycle, but doesn't do a proper comparison with
 		// it.)
 		TrekEvent event;
-
-		while (event.type != TREKEVENT_TICK) {
+		do {
 			if (!_vm->popNextEvent(&event))
 				continue;
-		}
+		} while (event.type != TREKEVENT_TICK);
 		clickedSprite->pos.y++;
 	}
 





More information about the Scummvm-git-logs mailing list