*Update instance script functions.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-05-11 03:17:13 -05:00
1 parent 4fef015112
commit f9f5d078fd
22 files changed
+83 -56

No files matched your search

+4 -4
View File
@@ -165,11 +165,11 @@ void InstanceSave::SaveToDB()
if(map)
{
assert(map->IsDungeon());
InstanceData *iData = ((InstanceMap *)map)->GetInstanceData();
if(iData && iData->Save())
if(InstanceData *iData = ((InstanceMap*)map)->GetInstanceData())
{
data = iData->Save();
CharacterDatabase.escape_string(data);
data = iData->GetSaveData();
if(!data.empty())
CharacterDatabase.escape_string(data);
}
}