From 2ef51278b220945150048ba651662e6e0ffbeed3 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Mon, 28 Jul 2003 11:56:34 +0000 Subject: fix shadow warning svn-id: r9244 --- sword2/save_rest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sword2') 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); } } -- cgit v1.2.3