Replaced NULL ptr with dummy kf_NOOP function so we don't crash on startup...

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2756 4a71c877-e1ca-e34f-864e-861f7616d084
master
Dennis Schridde 2007-11-08 23:01:13 +00:00
parent 9a06997527
commit b7daedee14
1 changed files with 5 additions and 3 deletions

View File

@ -90,6 +90,8 @@ UDWORD numActiveMappings;
static KEY_CODE lastMetaKey,lastSubKey; static KEY_CODE lastMetaKey,lastSubKey;
static BOOL bKeyProcessing = TRUE; static BOOL bKeyProcessing = TRUE;
static void kf_NOOP(void) {}
// ---------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------
// Adding a mapped function ? add a save pointer! Thank AlexL. // Adding a mapped function ? add a save pointer! Thank AlexL.
// don't bugger around with the order either. new ones go at the end! DEBUG in debug section.. // don't bugger around with the order either. new ones go at the end! DEBUG in debug section..
@ -225,7 +227,7 @@ _keymapsave keyMapSaveTable[] =
kf_AssignGrouping_0, kf_AssignGrouping_0,
kf_SelectGrouping_0, kf_SelectGrouping_0,
kf_SelectCommander_0, kf_SelectCommander_0,
NULL, // unused kf_NOOP, // unused
kf_ToggleFogColour, kf_ToggleFogColour,
kf_AddMissionOffWorld, kf_AddMissionOffWorld,
kf_KillSelected, kf_KillSelected,