From 55c97ad4eafe5e2f129a0cbf03335f738d2d64e2 Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Mon, 30 May 2011 14:21:20 -0400 Subject: [PATCH] Better error message. Somehow surprised I didn't cause issues with including each others' headers. --- src/Style.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Style.cpp b/src/Style.cpp index bfd23dc614..325c78262f 100644 --- a/src/Style.cpp +++ b/src/Style.cpp @@ -14,6 +14,7 @@ */ #include "Style.h" +#include "GameState.h" #include "RageLog.h" #include "RageUtil.h" #include "InputMapper.h" @@ -69,7 +70,7 @@ GameInput Style::StyleInputToGameInput( int iCol, PlayerNumber pn ) const } } - FAIL_M( ssprintf("Invalid column %i,%i", pn, iCol) ); + FAIL_M( ssprintf("Invalid column number %i for player %i in the style %s", iCol, pn, GAMESTATE->GetCurrentStyle()->m_szName) ); }; int Style::GameInputToColumn( const GameInput &GameI ) const