aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
authorMax Horn2003-07-28 11:56:34 +0000
committerMax Horn2003-07-28 11:56:34 +0000
commit2ef51278b220945150048ba651662e6e0ffbeed3 (patch)
treeccac34b5e4f354b86860df961b5f12aa312f1346 /sword2
parent43cd0cac87e35a219fc2db80a7dd32a407d3ddcc (diff)
downloadscummvm-rg350-2ef51278b220945150048ba651662e6e0ffbeed3.tar.gz
scummvm-rg350-2ef51278b220945150048ba651662e6e0ffbeed3.tar.bz2
scummvm-rg350-2ef51278b220945150048ba651662e6e0ffbeed3.zip
fix shadow warning
svn-id: r9244
Diffstat (limited to 'sword2')
-rw-r--r--sword2/save_rest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp
index 600c7e427b..e3019264f6 100644
--- a/sword2/save_rest.cpp
+++ b/sword2/save_rest.cpp
@@ -392,7 +392,7 @@ uint32 RestoreFromBuffer(mem *buffer, uint32 size)
uint32 GetSaveDescription(uint16 slotNo, uint8 *description) // (James05feb97)
{
char saveFileName[MAX_FILENAME_LEN];
- _savegameHeader header;
+ _savegameHeader dummy;
FILE *fp;
sprintf(saveFileName, "saves\\savegame.%.3d", slotNo); // construct filename
@@ -406,9 +406,9 @@ uint32 GetSaveDescription(uint16 slotNo, uint8 *description) // (James05feb97)
else
{
// fread(destAddress, size, count, fp);
- fread(&header, sizeof(header), 1, fp); // read header
+ fread(&dummy, sizeof(_savegameHeader), 1, fp); // read header
fclose(fp);
- sprintf((char*)description, header.description);
+ sprintf((char*)description, dummy.description);
return(SR_OK);
}
}