From fde0edc21a3822b2c502407f7c87c25b439e9e6c Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 28 Sep 2016 23:42:33 +0200 Subject: [PATCH] Changed: Minor changes --- code/ryzom/client/src/interface_v3/bar_manager.cpp | 2 ++ code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ryzom/client/src/interface_v3/bar_manager.cpp b/code/ryzom/client/src/interface_v3/bar_manager.cpp index 4f98fbcdd..55d7cfb52 100644 --- a/code/ryzom/client/src/interface_v3/bar_manager.cpp +++ b/code/ryzom/client/src/interface_v3/bar_manager.cpp @@ -213,6 +213,7 @@ void CBarManager::initInGame() "PRESENT", "HP", "SAP", "STA", ""); } + for(i=0;i<_EntryBars[AnimalType].size();i++) { // don't connect STA, SAP and FOCUS for animal, since they don't have @@ -222,6 +223,7 @@ void CBarManager::initInGame() "STATUS", "HP", "", "", ""); } + nlassert(_EntryBars[TargetType].size()==1); _EntryBars[TargetType][0].connectDB( "SERVER:TARGET:BARS:", diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp index 578033949..714ed7029 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp @@ -390,7 +390,7 @@ void CLuaIHMRyzom::RegisterRyzomFunctions( NLGUI::CLuaState &ls ) mt.setValue("__newindex", luaClientCfgNewIndex); globals.setNil("__cfmt"); // remove temp metatable - ls.registerFunc( "getUI", getUI ); + ls.registerFunc("getUI", getUI); ls.registerFunc("validMessageBox", validMessageBox); ls.registerFunc("getUICaller", getUICaller); ls.registerFunc("getUI", getUI);