Added worldID to where clause

This commit is contained in:
Zack Piispanen 2011-07-17 13:25:52 -04:00
parent 8e9bbcc5f9
commit 77998470bc

View file

@ -240,9 +240,10 @@ namespace TShockAPI.DB
else
MergedIDs = MergedIDs + "," + userName;
com.CommandText = "UPDATE Regions SET UserIds=@ids WHERE RegionName=@name";
com.CommandText = "UPDATE Regions SET UserIds=@ids WHERE RegionName=@name AND WorldID=@worldid";
com.AddParameter("@ids", MergedIDs);
com.AddParameter("@name", regionName);
com.AddParameter("@worldid", Main.worldID.ToString());
if (com.ExecuteNonQuery() > 0)
{
ReloadAllRegions();