]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
netradiant: fix entity count in map info, fix #184
authorThomas Debesse <dev@illwieckz.net>
Thu, 21 Mar 2024 22:07:24 +0000 (23:07 +0100)
committerThomas Debesse <dev@illwieckz.net>
Thu, 21 Mar 2024 22:07:24 +0000 (23:07 +0100)
radiant/map.cpp

index fe9f48c9f60ca2cd544b24a4bba702f5c91f7fd8..c783e035f869f6e63123ada368328c54ca4b6e6c 100644 (file)
@@ -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 ));
                }
        }