[Scummvm-git-logs] scummvm master -> dc24d543704c413f3e252b26253c1e18f540f4d3
Strangerke
noreply at scummvm.org
Sun Mar 2 10:20:08 UTC 2025
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:
dc24d54370 GOT: Add a safeguard to avoid a potential null dereferencing (CID 1589453)
Commit: dc24d543704c413f3e252b26253c1e18f540f4d3
https://github.com/scummvm/scummvm/commit/dc24d543704c413f3e252b26253c1e18f540f4d3
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-03-02T11:19:57+01:00
Commit Message:
GOT: Add a safeguard to avoid a potential null dereferencing (CID 1589453)
Changed paths:
engines/got/views/game_content.cpp
diff --git a/engines/got/views/game_content.cpp b/engines/got/views/game_content.cpp
index d124ae3ae5c..53139ade80d 100644
--- a/engines/got/views/game_content.cpp
+++ b/engines/got/views/game_content.cpp
@@ -263,7 +263,7 @@ void GameContent::drawActors(GfxSurface &s) {
for (int actor_num = 0; actor_num <= MAX_ACTORS;) {
// Check for blinking flag
- if (actor_ptr->_active && !(actor_ptr->_show & 2)) {
+ if (actor_ptr && actor_ptr->_active && !(actor_ptr->_show & 2)) {
actor_ptr->_lastX[_G(pge)] = actor_ptr->_x;
actor_ptr->_lastY[_G(pge)] = actor_ptr->_y;
More information about the Scummvm-git-logs
mailing list