- Fixed issues with loading scenarios caused by the struct alignments added in revision 63.
- Fixed a potential memory leak in load_scenario() in which new was essentially called twice in a row. - Added a max_items() function to the town record classes, in preparation for an eventual removal of the limit on preset items. git-svn-id: http://openexile.googlecode.com/svn/trunk@66 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
@@ -330,7 +330,6 @@ bool load_scenario(FSSpec file_to_load){
|
||||
}
|
||||
|
||||
len = (long) sizeof(legacy::scenario_data_type);
|
||||
temp_scenario = new legacy::scenario_data_type;
|
||||
error = FSRead(file_id, &len, (char *) temp_scenario);
|
||||
if (error != 0){
|
||||
FSClose(file_id);
|
||||
|
Reference in New Issue
Block a user