[Scummvm-git-logs] scummvm master -> 1f01b10618023e3a810ab20b42b22eb9e4be864f

digitall noreply at scummvm.org
Wed Dec 25 15:17:36 UTC 2024


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:
1f01b10618 PRINCE: Fix Debug Channel Behaviour And Spurious Warning Messages


Commit: 1f01b10618023e3a810ab20b42b22eb9e4be864f
    https://github.com/scummvm/scummvm/commit/1f01b10618023e3a810ab20b42b22eb9e4be864f
Author: D G Turner (digitall at scummvm.org)
Date: 2024-12-25T15:14:54Z

Commit Message:
PRINCE: Fix Debug Channel Behaviour And Spurious Warning Messages

This was previously causing "No debug channels were added, list is empty!"
warning messages to be emitted as the enum values implicitly start at zero
unless defined and the debug channel code uses zero as the end of structure
termination marker.

Changed paths:
    engines/prince/prince.h


diff --git a/engines/prince/prince.h b/engines/prince/prince.h
index 6d4aa3551e9..1aa9d6fe4e3 100644
--- a/engines/prince/prince.h
+++ b/engines/prince/prince.h
@@ -261,8 +261,8 @@ struct DrawNode {
 struct DebugChannel {
 
 enum Type {
-	kScript,
-	kEngine
+	kScript = 1 << 0,
+	kEngine = 1 << 1
 };
 
 };




More information about the Scummvm-git-logs mailing list