mirror of
				https://github.com/TES3MP/openmw-tes3mp.git
				synced 2025-11-04 00:26:45 +00:00 
			
		
		
		
	Merge pull request #476 from SamHellawell/0.7.0-fix-equipcrash-linux-cleanup
Cleanup fix for equip item crash on Linux
This commit is contained in:
		
						commit
						3d40a162bc
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -28,12 +28,9 @@ namespace mwmp
 | 
			
		|||
 | 
			
		||||
            if (!isRequest())
 | 
			
		||||
            {
 | 
			
		||||
                // Due to a bug on Linux w/ vsnprintf, we have to append soul as string here instead
 | 
			
		||||
                std::string msgStr = "- refId: %s, count: %i, charge: %f, enchantmentCharge: %f, soul: " + player->usedItem.soul;
 | 
			
		||||
                LOG_APPEND(Log::LOG_INFO, msgStr.c_str(),
 | 
			
		||||
                LOG_APPEND(Log::LOG_INFO, "- refId: %s, count: %i, charge: %i, enchantmentCharge: %f, soul: %s",
 | 
			
		||||
                    player->usedItem.refId.c_str(), player->usedItem.count, player->usedItem.charge,
 | 
			
		||||
                    player->usedItem.enchantmentCharge);
 | 
			
		||||
 | 
			
		||||
                    player->usedItem.enchantmentCharge, player->usedItem.soul.c_str());
 | 
			
		||||
 | 
			
		||||
                MWWorld::Ptr playerPtr = MWBase::Environment::get().getWorld()->getPlayerPtr();
 | 
			
		||||
                MWWorld::InventoryStore &inventoryStore = playerPtr.getClass().getInventoryStore(playerPtr);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue