diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-05-01 10:44:08 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-05-01 10:44:08 -0300 |
commit | 4804462ee06c1b3e2d1b50b857ce8693d3c0936d (patch) | |
tree | 5d1d06399c5ce28f27253943f35ef4a11d3ac633 /bin | |
parent | af42e244e0c41c92b6eeab379f7ba68869dbd0a9 (diff) |
-Fixes from source code analyzizer, closes #1768
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tests/test_physics_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/tests/test_physics_2d.cpp b/bin/tests/test_physics_2d.cpp index a441bed430..70a7d868be 100644 --- a/bin/tests/test_physics_2d.cpp +++ b/bin/tests/test_physics_2d.cpp @@ -191,7 +191,7 @@ class TestPhysics2DMainLoop : public MainLoop { Image image(convex_png); - body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].image=vs->texture_create_from_image(image); + body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].image=vs->texture_create_from_image(image); RID convex_polygon_shape = ps->shape_create(Physics2DServer::SHAPE_CONVEX_POLYGON); @@ -206,7 +206,7 @@ class TestPhysics2DMainLoop : public MainLoop { arr.push_back(Point2(11,7)-sb); ps->shape_set_data(convex_polygon_shape,arr); - body_shape_data[Physics2DServer::SHAPE_CONVEX_POLYGON].shape = convex_polygon_shape; + body_shape_data[Physics2DServer::SHAPE_CUSTOM+1].shape = convex_polygon_shape; } |