static int mesh_draw(script& script)
{
- mesh_handle* mesh;
+ mesh_handle mesh;
script[1].require_object<mesh_handle>("mesh").get(mesh);
scalar alpha;
if (script[2].get(alpha))
- (*mesh)->draw(alpha);
+ mesh->draw(alpha);
else
- (*mesh)->draw();
+ mesh->draw();
return 0;
}