diff --git a/src/state.rs b/src/state.rs index c947318..6af3abf 100644 --- a/src/state.rs +++ b/src/state.rs @@ -341,6 +341,7 @@ impl <'a> State <'a> { }, Instruction::GetField (a, b, c) => { let t = match self.reg (*b) { + Value::Nil => panic! ("R[B] must not be nil"), Value::Table (t) => t, _ => panic! ("R[B] must be a table"), };