aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/lab/labsets.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/lab/labsets.cpp b/engines/lab/labsets.cpp
index d68370bf88..02107543c1 100644
--- a/engines/lab/labsets.cpp
+++ b/engines/lab/labsets.cpp
@@ -57,22 +57,22 @@ void LargeSet::exclElement(uint16 element) {
}
bool LargeSet::readInitialConditions(const char *fileName) {
- byte **file;
+ byte *file;
uint16 many, set;
char temp[5];
if ((file = g_music->newOpen(fileName)) != NULL) {
- readBlock(temp, 4L, file);
+ memcpy(&temp, file, 4); file += 4;
temp[4] = '\0';
if (strcmp(temp, "CON0") != 0)
return false;
- readBlock(&many, 2L, file);
+ memcpy(&many, file, 2); file += 2;
swapUShortPtr(&many, 1);
for (int counter = 0; counter < many; counter++) {
- readBlock(&set, 2L, file);
+ memcpy(&set, file, 2); file += 2;
swapUShortPtr(&set, 1);
inclElement(set);
}