--- deliantra/server/socket/item.C 2011/05/04 07:41:14 1.97 +++ deliantra/server/socket/item.C 2012/01/03 11:25:37 1.99 @@ -1,7 +1,7 @@ /* * This file is part of Deliantra, the Roguelike Realtime MMORPG. * - * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team + * Copyright (©) 2005,2006,2007,2008,2009,2010,2011,2012 Marc Alexander Lehmann / Robin Redeker / the Deliantra team * Copyright (©) 2002 Mark Wedel & Crossfire Development Team * Copyright (©) 1992 Frank Tore Johansen * @@ -144,7 +144,7 @@ } else { - int len = min (head->custom_name.length (), 127); + int len = min (127, head->custom_name.length ()); sl << uint8 (len * 2 + 1) << data (head->custom_name, len)