summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorOleksandr Shcherbina <o.shcherbina@samsung.com>2016-06-21 17:40:27 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2016-06-21 17:43:34 +0200
commitf5c37f6930ce5e85e79fedaeee7c220e0a19d695 (patch)
tree9590f79c8c62a1119ece65d757d2bd697f935d29 /src/examples
parent318e249fd4670e0206b47f09fbf87b85026262d9 (diff)
examples: evas3d: fix out of range array
Missing parenthesis have been leading to an out of bound access here. Summary: @fix Reviewers: stefan_schmidt Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4069
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/evas/shooter/evas-3d-shooter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/examples/evas/shooter/evas-3d-shooter.c b/src/examples/evas/shooter/evas-3d-shooter.c
index 9dbf01e..21eafe4 100644
--- a/src/examples/evas/shooter/evas-3d-shooter.c
+++ b/src/examples/evas/shooter/evas-3d-shooter.c
@@ -1091,9 +1091,10 @@ _scene_setup(Scene_Data *data)
1091 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_snake); 1091 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_snake);
1092 1092
1093 for (i = 0; i < 4; i++) 1093 for (i = 0; i < 4; i++)
1094 {
1094 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_wall[i]); 1095 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_wall[i]);
1095 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_column[i]); 1096 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_column[i]);
1096 1097 }
1097 for (i = 0; i < 10; i++) 1098 for (i = 0; i < 10; i++)
1098 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_level[i]); 1099 evas_canvas3d_node_member_add(data->root_node, data->mesh_node_level[i]);
1099} 1100}