From 158c66b1b4cedfbc4991627492811d1e4d8ebf63 Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Sat, 9 Jan 2016 17:18:04 +0600 Subject: [PATCH] Do not pass objects to Printf. This seems to have worked by accident everywhere. Interestingly, clang -Wall did not warn about this, but MSVC did. --- src/describescreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/describescreen.cpp b/src/describescreen.cpp index c6d7f07..0c82487 100644 --- a/src/describescreen.cpp +++ b/src/describescreen.cpp @@ -174,7 +174,7 @@ void TextWindow::DescribeSelection(void) { Printf(true, " font = '%Fi%s%E'", e->font.c_str()); if(e->h.isFromRequest()) { Printf(false, " text = '%Fi%s%E' %Fl%Ll%f%D[change]%E", - e->str.c_str(), &ScreenEditTtfText, e->h.request()); + e->str.c_str(), &ScreenEditTtfText, e->h.request().v); Printf(true, " select new font"); SS.fonts.LoadAll(); int i; @@ -309,7 +309,7 @@ void TextWindow::DescribeSelection(void) { Printf(false, "%FtDIAMETER CONSTRAINT"); Printf(true, " %Fd%f%D%Ll%s show as radius", - &ScreenConstraintShowAsRadius, gs.constraint[0], + &ScreenConstraintShowAsRadius, gs.constraint[0].v, c->other ? CHECK_TRUE : CHECK_FALSE); } else { Printf(false, "%FtSELECTED:%E %s",