summaryrefslogtreecommitdiffhomepage
path: root/Stars45/NetUnitDlg.cpp
diff options
context:
space:
mode:
authorrhyskidd <rhyskidd@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-05-30 13:11:56 +0000
committerrhyskidd <rhyskidd@076cb2c4-205e-83fd-5cf3-1be9aa105544>2012-05-30 13:11:56 +0000
commit035cfd86e5d221cffb2673e936dcb8703e28ce4b (patch)
treec85f160125c9b5f7e765994e39623e06855e85e2 /Stars45/NetUnitDlg.cpp
parent29645ca3a17033577a290eb8c4b59515d9669378 (diff)
downloadstarshatter-035cfd86e5d221cffb2673e936dcb8703e28ce4b.zip
starshatter-035cfd86e5d221cffb2673e936dcb8703e28ce4b.tar.gz
starshatter-035cfd86e5d221cffb2673e936dcb8703e28ce4b.tar.bz2
Fix further instances of a class being passed as variable to Print(), instead of the string data itself
Diffstat (limited to 'Stars45/NetUnitDlg.cpp')
-rw-r--r--Stars45/NetUnitDlg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Stars45/NetUnitDlg.cpp b/Stars45/NetUnitDlg.cpp
index 9fb0670..f335485 100644
--- a/Stars45/NetUnitDlg.cpp
+++ b/Stars45/NetUnitDlg.cpp
@@ -1,6 +1,6 @@
/* Project Starshatter 5.0
Destroyer Studios LLC
- Copyright © 1997-2007. All Rights Reserved.
+ Copyright (C) 1997-2007. All Rights Reserved.
SUBSYSTEM: Stars.exe
FILE: NetUnitDlg.cpp
@@ -581,7 +581,7 @@ NetUnitDlg::OnBan(AWEvent* event)
ConfirmDlg* confirm = manager->GetConfirmDlg();
if (confirm) {
char msg[512];
- sprintf_s(msg, Game::GetText("NetUnitDlg.are-you-sure").data(), u->Name());
+ sprintf_s(msg, Game::GetText("NetUnitDlg.are-you-sure").data(), u->Name().data());
confirm->SetMessage(msg);
confirm->SetTitle(Game::GetText("NetUnitDlg.confirm-ban"));
confirm->SetParentControl(btn_ban);