[Scummvm-git-logs] scummvm master -> cc08993822981a650b54606495e4671cd12fa6da
lolbot-iichan
noreply at scummvm.org
Tue Nov 29 11:13:29 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:
cc08993822 WINTERMUTE: Fix crash on loaded games
Commit: cc08993822981a650b54606495e4671cd12fa6da
https://github.com/scummvm/scummvm/commit/cc08993822981a650b54606495e4671cd12fa6da
Author: lb_ii (lb_ii at scummvm.org)
Date: 2022-11-29T14:13:24+03:00
Commit Message:
WINTERMUTE: Fix crash on loaded games
Changed paths:
engines/wintermute/base/base_object.cpp
diff --git a/engines/wintermute/base/base_object.cpp b/engines/wintermute/base/base_object.cpp
index 28fc54f39f2..19dfff6f5a1 100644
--- a/engines/wintermute/base/base_object.cpp
+++ b/engines/wintermute/base/base_object.cpp
@@ -1118,6 +1118,9 @@ bool BaseObject::persist(BasePersistenceManager *persistMgr) {
persistMgr->transferFloat(TMEMBER(_scale3D));
persistMgr->transferVector3d(TMEMBER(_shadowLightPos));
persistMgr->transferBool(TMEMBER(_drawBackfaces));
+ } else {
+ _xmodel = nullptr;
+ _shadowModel = nullptr;
}
#endif
More information about the Scummvm-git-logs
mailing list