Prevent manually setting Data["locX"] and Data["locY"], since that would

overwrite the posX and posY members of the structure
remotes/origin/0.6.7-post-fixes
Melanie 2009-09-27 21:58:34 +01:00
parent b5bf3f87d5
commit 12640d0824
1 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,10 @@ namespace OpenSim.Data.MySQL
data.Data.Remove("sizeX"); data.Data.Remove("sizeX");
if (data.Data.ContainsKey("sizeY")) if (data.Data.ContainsKey("sizeY"))
data.Data.Remove("sizeY"); data.Data.Remove("sizeY");
if (data.Data.ContainsKey("locX"))
data.Data.Remove("locX");
if (data.Data.ContainsKey("locY"))
data.Data.Remove("locY");
string[] fields = new List<string>(data.Data.Keys).ToArray(); string[] fields = new List<string>(data.Data.Keys).ToArray();