瀏覽代碼

Merge pull request #1446 from UsernameIsAReservedWord/fixes_kinematicbody_move_crash

should fixes #1284 (KinematicBody .move() crash)
Juan Linietsky 10 年之前
父節點
當前提交
c2d975582c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      servers/physics/shape_sw.h

+ 1 - 1
servers/physics/shape_sw.h

@@ -438,7 +438,7 @@ struct MotionShapeSW : public ShapeSW {
 		}
 		return support;
 	}
-	virtual void get_supports(const Vector3& p_normal,int p_max,Vector3 *r_supports,int & r_amount) const {}
+	virtual void get_supports(const Vector3& p_normal,int p_max,Vector3 *r_supports,int & r_amount) const { r_amount=0; }
 	bool intersect_segment(const Vector3& p_begin,const Vector3& p_end,Vector3 &r_result, Vector3 &r_normal) const { return false; }
 
 	Vector3 get_moment_of_inertia(float p_mass) const { return Vector3(); }