Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions sources/setfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ int AllocSetups(VOID)
AM.NumStoreCaches = sp->value;
sp = GetSetupPar((UBYTE *)"sizestorecache");
AM.SizeStoreCache = sp->value;
/* Make sure this is a multiple of sizeof(WORD). */
AM.SizeStoreCache = ((AM.SizeStoreCache+sizeof(WORD)-1)/sizeof(WORD))*sizeof(WORD);
#ifndef WITHPTHREADS
/*
Install the store caches (15-aug-2006 JV)
Expand Down
4 changes: 3 additions & 1 deletion sources/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,9 @@ PastCon:;
num = *from++;
ADDPOS(*position,sizeof(WORD));
*to += (WORD)num;
/* first = 0; */
/* This next line has always been commented, but uncommenting it
fixes a rare bug when loading certain save files. */
first = 0;
*InCompState = (WORD)(num + 2);
}
goto PastCon;
Expand Down
Loading