From a08d7977c3002b7a425f622b29e5fd317fde87ae Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sat, 26 Jul 2008 20:49:28 +0000 Subject: [PATCH] Added some assertions --- src/emu/inptport.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/emu/inptport.c b/src/emu/inptport.c index 25784501dc5..5b8985280a0 100644 --- a/src/emu/inptport.c +++ b/src/emu/inptport.c @@ -1139,6 +1139,9 @@ const input_seq *input_type_seq(running_machine *machine, int type, int player, { static const input_seq ip_none = SEQ_DEF_0; + assert((type >= 0) && (type < __ipt_max)); + assert((player >= 0) && (player < MAX_PLAYERS)); + /* if we have a machine, use the live state and quick lookup */ if (machine != NULL) {