Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit c5f425e

Browse files
committed
Explicit constructor
To prevent "Vector + float" from being valid.
1 parent 928d8e5 commit c5f425e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

System/Vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace RTE {
2626
/// </summary>
2727
/// <param name="inputX">Float defining the initial X value of this Vector.</param>
2828
/// <param name="inputY">Float defining the initial Y value of this Vector.</param>
29-
Vector(const float inputX = 0.0F, const float inputY = 0.0F) :
29+
explicit Vector(const float inputX = 0.0F, const float inputY = 0.0F) :
3030
m_X(inputX),
3131
m_Y(inputY) {};
3232
#pragma endregion

0 commit comments

Comments
 (0)