mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
a few more useless changes
This commit is contained in:
@@ -196,12 +196,12 @@ namespace OpenSim.Data.PGSQL
|
||||
{
|
||||
while (itemReader.Read())
|
||||
{
|
||||
if (!(itemReader["primID"] is DBNull))
|
||||
if (itemReader["primID"] is not DBNull)
|
||||
{
|
||||
UUID primID = new UUID(itemReader["primID"].ToString());
|
||||
if (prims.ContainsKey(primID))
|
||||
if(UUID.TryParse(itemReader["primID"].ToString(), out UUID primID) &&
|
||||
prims.TryGetValue(primID, out SceneObjectPart sop))
|
||||
{
|
||||
primsWithInventory.Add(prims[primID]);
|
||||
primsWithInventory.Add(sop);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user