Changeset - r21077:72fea0dd4028
[Not reviewed]
master
0 1 0
frosch - 10 years ago 2013-12-16 18:18:58
frosch@openttd.org
(svn r26161) -Fix [FS#5830] (r22567) (r25956-ish): Backup data of altered persistent storage arrays was freed twice.
1 file changed with 0 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/newgrf_storage.h
Show inline comments
 
@@ -198,14 +198,6 @@ struct PersistentStorage : PersistentSto
 
	/** We don't want GCC to zero our struct! It already is zeroed and has an index! */
 
	PersistentStorage(const uint32 new_grfid) : grfid(new_grfid)
 
	{
 
		this->prev_storage = NULL;
 
		memset(this->storage, 0, sizeof(this->storage));
 
	}
 

	
 
	/** Free the memory used by the persistent storage. */
 
	~PersistentStorage()
 
	{
 
		free(this->prev_storage);
 
	}
 
};
 

	
0 comments (0 inline, 0 general)