FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

#78 - [Bug] Dominus Node Count Fix (Approved) (Added)

 
Post new topic   Reply to topic    Drop Shock Forum Index -> Player Council - Closed Tickets
View previous topic :: View next topic  
Author Message
Vanoi
Site Admin


Joined: 25 Aug 2005
Posts: 1403
Location: Avoiding You (The Void)

PostPosted: Tue Mar 05, 2013 2:23 pm    Post subject: #78 - [Bug] Dominus Node Count Fix (Approved) (Added) Reply with quote

https://sourceforge.net/p/dropshock/tickets/78/

Approved: 5 Ayes

This is the fix for the Dominus' Node Count, basicly what's happening is that it's looking for factiondata->id which hasn't been retrieves yet (Don't know why I didn't see it the first time).

$nodeCount =& $db->getOne("SELECT count(id) FROM deployed_relics where i_planet=? AND faction_owner=?", array($user_deployedto,$factiondata->id) );

needs to be changed to

$nodeCount =& $db->getOne("SELECT count(id) FROM deployed_relics where i_planet=? AND faction_owner=(SELECT i_faction FROM users WHERE id=?) ", array($user_deployedto,$userid) );

I'll get to committing and writing a ticket once I get home.
_________________
The person who will go to great lengths to fight boredom...


Last edited by Vanoi on Wed Mar 06, 2013 8:06 am; edited 3 times in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
krisjaniz
Mentor


Joined: 17 May 2009
Posts: 471

PostPosted: Tue Mar 05, 2013 3:00 pm    Post subject: Reply with quote

Looks legit, AYE
_________________
Back to top
View user's profile Send private message
Dark Leth
Council Member


Joined: 05 Jul 2005
Posts: 1498

PostPosted: Tue Mar 05, 2013 3:26 pm    Post subject: Reply with quote

Yes.
Back to top
View user's profile Send private message
Walterohdim
Site Admin


Joined: 15 Jun 2006
Posts: 1629
Location: Somewhere with lots of doors

PostPosted: Tue Mar 05, 2013 6:03 pm    Post subject: Reply with quote

Bugfix-Yes
_________________
Wannabee historian of Tinywarz. Through the building of myth we will build community. M. Scott Peck

Back to top
View user's profile Send private message Visit poster's website
Slayer_666
Council Member


Joined: 20 Dec 2012
Posts: 226

PostPosted: Tue Mar 05, 2013 11:49 pm    Post subject: Reply with quote

Yay

Slayer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Drop Shock Forum Index -> Player Council - Closed Tickets All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group