From 99ccb03ac76f322b4183ae4ae6036f9da53755b4 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 26 Sep 2006 05:04:14 +0000 Subject: [PATCH] update Difficulty --- stepmania/src/Song.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index a6f7261ef0..6447343c17 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -1265,7 +1265,8 @@ public: static int HasStepsTypeAndDifficulty( T* p, lua_State *L ) { StepsType st = (StepsType)IArg(1); - Difficulty dc = (Difficulty)IArg(2); + + Difficulty dc = Enum::Check( L, 2 ); lua_pushboolean( L, p->HasStepsTypeAndDifficulty(st, dc) ); return 1;