Changeset - r8435:c2fea801325e
[Not reviewed]
master
0 1 0
rubidium - 16 years ago 2008-01-29 00:29:28
rubidium@openttd.org
(svn r12005) -Fix [FS#1717]: possible reading from an invalid pointer. Patch by PhilSophus.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/spritecache.cpp
Show inline comments
 
@@ -262,8 +262,8 @@ bool LoadNextSprite(int load_index, byte
 

	
 
void DupSprite(SpriteID old_spr, SpriteID new_spr)
 
{
 
	SpriteCache *scnew = AllocateSpriteCache(new_spr); // may reallocate: so put it first
 
	SpriteCache *scold = GetSpriteCache(old_spr);
 
	SpriteCache *scnew = AllocateSpriteCache(new_spr);
 

	
 
	scnew->file_slot = scold->file_slot;
 
	scnew->file_pos = scold->file_pos;
0 comments (0 inline, 0 general)