summaryrefslogtreecommitdiff
path: root/Userland/Games
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2023-05-03 18:45:18 -0400
committerAndreas Kling <kling@serenityos.org>2023-05-09 11:18:46 +0200
commit8c34959b53b2b72122fe6d2718d5dc060ff56875 (patch)
tree8e88ecd303fddce25ffc170d297bc76762f115da /Userland/Games
parent48b000a36cb22550e2c5314bc6c471812c963d0c (diff)
downloadserenity-8c34959b53b2b72122fe6d2718d5dc060ff56875.zip
AK: Add the `Input` word to input-only buffered streams
This concerns both `BufferedSeekable` and `BufferedFile`.
Diffstat (limited to 'Userland/Games')
-rw-r--r--Userland/Games/MasterWord/WordGame.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/MasterWord/WordGame.cpp b/Userland/Games/MasterWord/WordGame.cpp
index 3192faae80..0e30a336ca 100644
--- a/Userland/Games/MasterWord/WordGame.cpp
+++ b/Userland/Games/MasterWord/WordGame.cpp
@@ -178,7 +178,7 @@ void WordGame::read_words()
auto try_load_words = [&]() -> ErrorOr<void> {
auto response = TRY(Core::File::open("/res/words.txt"sv, Core::File::OpenMode::Read));
- auto words_file = TRY(Core::BufferedFile::create(move(response)));
+ auto words_file = TRY(Core::InputBufferedFile::create(move(response)));
Array<u8, 128> buffer;
while (!words_file->is_eof()) {