Include event type number in warning for unhandled LASH events.

This commit is contained in:
Jonathan Moore Liles 2008-06-15 09:48:14 -05:00
parent f440223d20
commit c71283fb85
1 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,9 @@ Lash::process ( void )
{ {
asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" ); asprintf( &name, "%s/%s", lash_event_get_string( e ), "song.non" );
switch ( lash_event_get_type( e ) ) const int t = lash_event_get_type ( e );
switch ( t )
{ {
case LASH_Save_File: case LASH_Save_File:
{ {
@ -97,7 +99,7 @@ Lash::process ( void )
quit(); quit();
break; break;
default: default:
WARNING( "unhandled LASH event" ); WARNING( "unhandled LASH event (%d)", t );
} }
lash_event_destroy( e ); lash_event_destroy( e );