Browse Source

Include event type number in warning for unhandled LASH events.

tags/non-sequencer-v1.9.4
Jonathan Moore Liles 17 years ago
parent
commit
c71283fb85
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/lash.C

+ 4
- 2
src/lash.C 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 );


Loading…
Cancel
Save