mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 04:32:06 +00:00 
			
		
		
		
	Player: Saving fixes
Address issue of allowing a character to be saved before they were ready for updates.
This commit is contained in:
		| @@ -314,6 +314,11 @@ void Character::SaveXMLToDatabase() { | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	if (!m_OurEntity->GetPlayerReadyForUpdates()) { | ||||
| 		LOG("Attempted to save before player %i:%s was not ready for updates. Character will NOT be saved.", GetID(), GetName().c_str()); | ||||
| 		return; | ||||
| 	} | ||||
|  | ||||
| 	m_OurEntity->UpdateXMLDoc(m_Doc); | ||||
|  | ||||
| 	WriteToDatabase(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 EmosewaMC
					EmosewaMC