From: Thomas Debesse Date: Thu, 21 Mar 2024 22:07:24 +0000 (+0100) Subject: netradiant: fix entity count in map info, fix #184 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3cd747f08e61cbbdc89bf26945cb1b79af584010;p=xonotic%2Fnetradiant.git netradiant: fix entity count in map info, fix #184 --- diff --git a/radiant/map.cpp b/radiant/map.cpp index fe9f48c9..c783e035 100644 --- a/radiant/map.cpp +++ b/radiant/map.cpp @@ -1043,9 +1043,7 @@ void DoMapInfo(){ for ( EntityBreakdown::iterator i = entitymap.begin(); i != entitymap.end(); ++i ) { - char tmp[16]; - sprintf( tmp, "%u", Unsigned( ( *i ).second ) ); - EntityBreakdownWalker.append(0, (*i).first.c_str(), 1, tmp); + EntityBreakdownWalker.append(0, (*i).first.c_str(), 1, Unsigned( ( *i ).second )); } }