Jump to content

[FIX][7329] CastBarCaption localization


Guest wilibald09

Recommended Posts

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.

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use