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

sev- noreply at scummvm.org
Fri Oct 17 18:50:08 UTC 2025


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

Summary:
eab6e387a6 DIRECTOR: Prevent crash when rendering ink types


Commit: eab6e387a6172b31f9c429f475780623b65eacbc
    https://github.com/scummvm/scummvm/commit/eab6e387a6172b31f9c429f475780623b65eacbc
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2025-10-17T20:49:40+02:00

Commit Message:
DIRECTOR: Prevent crash when rendering ink types

Changed paths:
    engines/director/types.cpp


diff --git a/engines/director/types.cpp b/engines/director/types.cpp
index 75f807337ba..8f66e1989c4 100644
--- a/engines/director/types.cpp
+++ b/engines/director/types.cpp
@@ -130,7 +130,7 @@ const char *const inkType[] = {
 };
 
 const char *inkType2str(InkType type) {
-	if (type <= kInkTypeMask)
+	if (type >= kInkTypeCopy && type <= kInkTypeMask)
 		return inkType[type];
 
 	if (type >= kInkTypeBlend && type <= kInkTypeDark)




More information about the Scummvm-git-logs mailing list