Jayz Posted April 12 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 396 Reputation: 53 Joined: 07/24/12 Last Seen: 8 hours ago Share Posted April 12 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) Quote Link to comment Share on other sites More sharing options...
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.