What bug does the patch fix? What features does the patch add?
Recently, I noticed that there's a problem with gameobjects castbarcaption localization.
For which repository revision was the patch created?
Any compatible with 3.0.9 version.
Who has been writing this patch?
Wilibald09
Patch :
diff --git a/src/game/ObjectMgr.cpp b/src/game/ObjectMgr.cpp
index 135270f..7275a85 100644
--- a/src/game/ObjectMgr.cpp
+++ b/src/game/ObjectMgr.cpp
@@ -5303,7 +5303,7 @@ void ObjectMgr::LoadGameObjectLocales()
std::string str = fields[i].GetCppString();
if(!str.empty())
{
- int idx = GetOrNewIndexForLocale(LocaleConstant(i));
+ int idx = GetOrNewIndexForLocale(LocaleConstant(i % MAX_LOCALE + 1));
if(idx >= 0)
{
if(data.CastBarCaption.size() <= idx)
Have a good day.