View Single Post
  #7  
Old 09-05-2014, 10:21 PM
Coenxai's Avatar
Coenxai
Hill Giant
 
Join Date: Dec 2013
Posts: 151
Default

void ZoneDatabase::AssignGrid(Client *client, float x, float y, uint32 grid)
Code:
if(matches == 1)
should be:
Code:
if(matches > 1)
Change first query to:
Code:
	std::string query = StringFormat("SELECT id, x, y FROM spawn2 WHERE zone = '%s' AND x = %i AND y = %i",
                                    zone->GetShortName(), x, y);
This will help you temporarily until that section of the code is cleaned up.
Reply With Quote