[Scummvm-git-logs] scummvm master -> 822d2e5319e2314fcc64edfe94cd7b9c3924ac9b
aquadran
noreply at scummvm.org
Sat Jun 18 19:09:47 UTC 2022
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:
822d2e5319 GRIM: Added safety check. Make easier to debug
Commit: 822d2e5319e2314fcc64edfe94cd7b9c3924ac9b
https://github.com/scummvm/scummvm/commit/822d2e5319e2314fcc64edfe94cd7b9c3924ac9b
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-06-18T21:09:43+02:00
Commit Message:
GRIM: Added safety check. Make easier to debug
Changed paths:
engines/grim/actor.cpp
diff --git a/engines/grim/actor.cpp b/engines/grim/actor.cpp
index 9e298f77560..5ca90644902 100644
--- a/engines/grim/actor.cpp
+++ b/engines/grim/actor.cpp
@@ -1838,6 +1838,9 @@ bool Actor::shouldDrawShadow(int shadowId) {
// Don't draw a shadow if the shadow caster and the actor are on different sides
// of the the shadow plane.
+
+ if (shadow->planeList.size() == 0)
+ return false;
Sector *sector = shadow->planeList.front().sector;
Math::Vector3d n = sector->getNormal();
Math::Vector3d p = sector->getVertices()[0];
More information about the Scummvm-git-logs
mailing list