From 167d9c48a3d72c923616f18759b1ab7860e59a7d Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 14 Dec 2015 14:20:22 +0100 Subject: LAB: Reduced scope of a few more variables --- engines/lab/resource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/lab/resource.cpp') diff --git a/engines/lab/resource.cpp b/engines/lab/resource.cpp index cb29bc6407..8b7d26f3ca 100644 --- a/engines/lab/resource.cpp +++ b/engines/lab/resource.cpp @@ -251,7 +251,6 @@ Action *Resource::readAction(Common::File *file) { Action *action = NULL; Action *prev = NULL; Action *head = NULL; - char **messages; do { c = file->readByte(); @@ -268,7 +267,7 @@ Action *Resource::readAction(Common::File *file) { action->_param3 = file->readSint16LE(); if (action->_actionType == SHOWMESSAGES) { - messages = (char **)malloc(action->_param1 * 4); + char **messages = (char **)malloc(action->_param1 * 4); for (int i = 0; i < action->_param1; i++) messages[i] = readString(file); -- cgit v1.2.3