]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.h
Implement buffer operations
[xonotic/netradiant.git] / radiant / patch.h
index bc98fabe40bb75f0df475f0ada0b52c2c69c7f75..3cfd1ad2b86156c39b123b5d6ad54547f3c6000f 100644 (file)
@@ -806,8 +806,8 @@ void exportXML( XMLImporter& importer ){
        {
                auto width = u::buffer<16>();
                auto height = u::buffer<16>();
-               sprintf( width, "%u", Unsigned( m_width ) );
-               sprintf( height, "%u", Unsigned( m_height ) );
+               width.sprintf( "%u", Unsigned( m_width ) );
+               height.sprintf( "%u", Unsigned( m_height ) );
                StaticElement element( "matrix" );
                element.insertAttribute( "width", width );
                element.insertAttribute( "height", height );