Skip to content

Commit c4e0c34

Browse files
committed
Style: Change optional value getting style
1 parent 5a61d72 commit c4e0c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tetromino/tetromino.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Tetromino::Tetromino(const Angle angle,
1919
if (color.value_or(Color::Non) == Color::Non) {
2020
SetColor(GetRandomColor());
2121
} else {
22-
SetColor(color.value());
22+
SetColor(*color);
2323
}
2424

2525
assert(GetColor() != Color::Non);

0 commit comments

Comments
 (0)