# HG changeset patch # User smatz # Date 2010-05-13 05:34:21 # Node ID 2e86f6d3fccaf1c87a16a65bcde534235c6599e7 # Parent 8d3e7ff538823a1086c00818c33454eaaf3f4994 (svn r19806) -Codechange: silence one warning diff --git a/src/saveload/depot_sl.cpp b/src/saveload/depot_sl.cpp --- a/src/saveload/depot_sl.cpp +++ b/src/saveload/depot_sl.cpp @@ -46,7 +46,7 @@ static void Load_DEPT() SlObject(depot, _depot_desc); /* Set the town 'pointer' so we can restore it later. */ - if (CheckSavegameVersion(141)) depot->town = (Town *)_town_index; + if (CheckSavegameVersion(141)) depot->town = (Town *)(size_t)_town_index; } }