Ignore:
Timestamp:
Apr 18, 2011, 3:03:48 PM (11 years ago)
Author:
Sam Hocevar
Message:

cache: fix a crash caused by empty SFX objects being reused for other
purposes but still being deleted later on.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/loader2.cpp

    r496 r503  
    426426
    427427  if (DEFINEDP(symbol_value(l_title_screen)))
    428     title_screen=cache.reg_object(NULL,symbol_value(l_title_screen),SPEC_IMAGE,1);
     428    title_screen=cache.reg_object(NULL,(LObject *)symbol_value(l_title_screen),SPEC_IMAGE,1);
    429429  else title_screen=-1;
    430430
    431431  if (DEFINEDP(symbol_value(l_cdc_logo)))
    432     cdc_logo=cache.reg_object(NULL,symbol_value(l_cdc_logo),SPEC_IMAGE,1);
     432    cdc_logo=cache.reg_object(NULL,(LObject *)symbol_value(l_cdc_logo),SPEC_IMAGE,1);
    433433  else cdc_logo=-1;
    434434
Note: See TracChangeset for help on using the changeset viewer.