浏览代码

PhysicsServerSW::body_is_shape_set_as_trigger - missing return statement

ehriche 10 年之前
父节点
当前提交
670d77813f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/physics/physics_server_sw.cpp

+ 1 - 1
servers/physics/physics_server_sw.cpp

@@ -551,7 +551,7 @@ bool PhysicsServerSW::body_is_shape_set_as_trigger(RID p_body, int p_shape_idx)
 	ERR_FAIL_COND_V(!body,false);
 	ERR_FAIL_INDEX_V(p_shape_idx,body->get_shape_count(),false);
 
-	body->is_shape_set_as_trigger(p_shape_idx);
+	return body->is_shape_set_as_trigger(p_shape_idx);
 }