Fixed VC++ warnings

svn-id: r7847
This commit is contained in:
Jamieson Christian 2003-05-23 03:34:18 +00:00
parent a0a096e2e8
commit bb1894e3b7

View File

@ -941,7 +941,7 @@ void Serializer::saveEntries(void *d, const SaveLoadEntry *sle) {
while (sle->offs != 0xFFFF) {
at = (byte *)d + sle->offs;
size = sle->size;
type = sle->type;
type = (byte) sle->type;
if (sle->maxVersion != CURRENT_VER) {
// Skip obsolete entries
@ -980,7 +980,7 @@ void Serializer::loadEntries(void *d, const SaveLoadEntry *sle) {
while (sle->offs != 0xFFFF) {
at = (byte *)d + sle->offs;
size = sle->size;
type = sle->type;
type = (byte) sle->type;
if (_savegameVersion < sle->minVersion || _savegameVersion > sle->maxVersion) {
// Skip entries which are not present in this save game version