From 12313fecf5a0ccad45f88575a24582b8363bd5a7 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Mon, 27 May 2013 20:59:50 +0200 Subject: Fixed some memory issues * invalid pointer, uninitialized buffer --- src/ui/studio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui') diff --git a/src/ui/studio.cpp b/src/ui/studio.cpp index 24a64c4..e44a465 100644 --- a/src/ui/studio.cpp +++ b/src/ui/studio.cpp @@ -904,7 +904,7 @@ void CStudio::SetInfoText(std::string text, bool bClickable) if ( list == 0 ) return; list->Flush(); // just text - list->SetName(0, text.c_str()); + list->SetItemName(0, text.c_str()); if ( text[0] == 0 ) bClickable = false; list->SetSelectCap(bClickable); -- cgit v1.2.3-1-g7c22