Jump to content
  • 0

Manually diffing Custom BG


Jayz

Question


  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  396
  • Reputation:   53
  • Joined:  07/24/12
  • Last Seen:  

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

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...