The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
Manually diffing Custom BG
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Jayz
Hello, I've manually applied a diff patch here in this part. I'm not sure if it's correct, please correct me if necessary.
Here's the diff patch that I applied.
- if( (g = sd->guild) == NULL )
+ if (sd->bg_id)
+ g = bg_guild_get(sd->bg_id);
+ else
+ g = sd->guild;
+ if (g == NULL)
This is from the latest rAthena Files.
auto &g = sd->guild;
if (!g)
This is what I did. If there are any mistakes, please correct me. Thank you very much.
auto &g = (sd->bg_id) ? bg_guild_get(sd->bg_id) : sd->guild;
if (!g)
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.