X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Fmoof%2Fmesh_bindings.cc;h=290b42aef012ab09a8e221a7756bfd700c5d2a7f;hp=8c9f9e0c07aff424d717944ea3499b73edb19e1d;hb=2b36c1e20e90f7a1e97740673adc697c40ce367e;hpb=aa67fc8ab5691cad24b55d0e12aba2f6c3e58316 diff --git a/src/moof/mesh_bindings.cc b/src/moof/mesh_bindings.cc index 8c9f9e0..290b42a 100644 --- a/src/moof/mesh_bindings.cc +++ b/src/moof/mesh_bindings.cc @@ -31,14 +31,14 @@ static int mesh_new(script& script) static int mesh_draw(script& script) { - mesh_handle* mesh; + mesh_handle mesh; script[1].require_object("mesh").get(mesh); scalar alpha; if (script[2].get(alpha)) - (*mesh)->draw(alpha); + mesh->draw(alpha); else - (*mesh)->draw(); + mesh->draw(); return 0; }