Browse Source

Rearrange fields in the Optional struct for less wasted padding.

Alex Szpakowski 6 years ago
parent
commit
62d6573216
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/common/Optional.h

+ 1 - 1
src/common/Optional.h

@@ -27,8 +27,8 @@ namespace love
 template <typename T>
 struct Optional
 {
-	bool hasValue;
 	T value;
+	bool hasValue;
 
 	Optional()
 		: hasValue(false)