From 3bf4f3fcbe342d5ddb805e66de1df29541541410 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 19 Sep 2016 10:03:30 +0200 Subject: FULLPIPE: Fix crash at load dialog initialization --- engines/fullpipe/gameloader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines/fullpipe/gameloader.cpp') diff --git a/engines/fullpipe/gameloader.cpp b/engines/fullpipe/gameloader.cpp index 55db7fb8e3..d1f27814c0 100644 --- a/engines/fullpipe/gameloader.cpp +++ b/engines/fullpipe/gameloader.cpp @@ -712,7 +712,8 @@ bool readSavegameHeader(Common::InSaveFile *in, FullpipeSavegameHeader &header) // Read in the string header.saveName.clear(); char ch; - while ((ch = (char)in->readByte()) != '\0') header.saveName += ch; + while ((ch = (char)in->readByte()) != '\0') + header.saveName += ch; // Get the thumbnail header.thumbnail = Graphics::loadThumbnail(*in); -- cgit v1.2.3