Ignore:
Timestamp:
Apr 30, 2015, 1:55:16 AM (10 years ago)
Author:
alloc
Message:

Fixes for 11.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/7dtd-server-fixes/src/PlayerDataStuff.cs

    r232 r233  
    88        {
    99
    10                 public static void GM_SavePlayerData (int _clientId, PlayerDataFile _playerDataFile)
     10                public static void GM_SavePlayerData (ClientInfo _cInfo, PlayerDataFile _playerDataFile)
    1111                {
    1212                        try {
    13                                 ClientInfo ci = ConnectionManager.Instance.GetClient (_clientId);
    14                                 PersistentContainer.Instance.Players[ci.playerId].Inventory.Update(_playerDataFile);
     13                                PersistentContainer.Instance.Players[_cInfo.playerId, true].Update (_playerDataFile);
    1514                        } catch (Exception e) {
    1615                                Log.Out ("Error in GM_SavePlayerData: " + e);
Note: See TracChangeset for help on using the changeset viewer.