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

lephilousophe noreply at scummvm.org
Sun Oct 18 06:54:21 UTC 2026


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:
c026f4f2ab HARVESTER: Make AttackAnimationRange constructor constexpr


Commit: c026f4f2ab10d1ca138c7d9f7101925963f3aa95
    https://github.com/scummvm/scummvm/commit/c026f4f2ab10d1ca138c7d9f7101925963f3aa95
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2026-10-18T08:53:00+02:00

Commit Message:
HARVESTER: Make AttackAnimationRange constructor constexpr

This lets static const variables being built at compilation instead of
at runtime.

Changed paths:
    engines/harvester/combat.h


diff --git a/engines/harvester/combat.h b/engines/harvester/combat.h
index 40b64d192a1..95c6008eeb5 100644
--- a/engines/harvester/combat.h
+++ b/engines/harvester/combat.h
@@ -62,7 +62,7 @@ extern const int kNativeDefaultNpcDeathDamageType;
 
 struct AttackAnimationRange {
 	AttackAnimationRange() {}
-	AttackAnimationRange(int firstFrame, int lastFrame, int resumeFacing)
+	constexpr AttackAnimationRange(int firstFrame, int lastFrame, int resumeFacing)
 		: firstFrame(firstFrame), lastFrame(lastFrame), resumeFacing(resumeFacing) {}
 
 	int firstFrame = 0;




More information about the Scummvm-git-logs mailing list