summaryrefslogtreecommitdiffstats
path: root/pacman-c++/sceneholder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pacman-c++/sceneholder.cpp')
-rw-r--r--pacman-c++/sceneholder.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/pacman-c++/sceneholder.cpp b/pacman-c++/sceneholder.cpp
index 37db691..feef033 100644
--- a/pacman-c++/sceneholder.cpp
+++ b/pacman-c++/sceneholder.cpp
@@ -57,9 +57,8 @@ void SceneHolder::updateMap(const Transmission::map_t& map, const unsigned int x
57 { 57 {
58 GameEntity *oldItem = visualMap[x][y]; 58 GameEntity *oldItem = visualMap[x][y];
59 /* special handling for purging field 59 /* special handling for purging field
60 * remove elements (in case it's not an actor)
61 */ 60 */
62 if (oldItem != NULL && qgraphicsitem_cast<Actor *>(oldItem) == NULL) 61 if (oldItem != NULL)
63 { 62 {
64 visualMap[x][y] = NULL; 63 visualMap[x][y] = NULL;
65 Actor *actor = NULL; 64 Actor *actor = NULL;