[Scummvm-git-logs] scummvm master -> 306d2ecdd0b78f3d27355056ab0b4c2fc7884c53

grisenti noreply at scummvm.org
Tue Dec 19 08:24:31 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:
306d2ecdd0 HPL1: add default case to switch statement


Commit: 306d2ecdd0b78f3d27355056ab0b4c2fc7884c53
    https://github.com/scummvm/scummvm/commit/306d2ecdd0b78f3d27355056ab0b4c2fc7884c53
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-19T09:24:22+01:00

Commit Message:
HPL1: add default case to switch statement

Changed paths:
    engines/hpl1/engine/impl/MeshLoaderMSH.cpp


diff --git a/engines/hpl1/engine/impl/MeshLoaderMSH.cpp b/engines/hpl1/engine/impl/MeshLoaderMSH.cpp
index c073937e1d1..99679f4634f 100644
--- a/engines/hpl1/engine/impl/MeshLoaderMSH.cpp
+++ b/engines/hpl1/engine/impl/MeshLoaderMSH.cpp
@@ -324,6 +324,8 @@ void cMeshLoaderMSH::SaveFloatData(TiXmlElement *apRoot, int alSize, const char
 		case 6:
 			snprintf(sTemp, 20, "%.6f", apData[i]);
 			break;
+		default:
+			error("trying to serialize a floating point value with a precision that is not in the range 1-6");
 		}
 
 		sData += sTemp;




More information about the Scummvm-git-logs mailing list