Browse Source

Whoops-a-birdy

Michael Hansen 11 years ago
parent
commit
3d1bcf1988
  1. 2
      Sources/Plasma/CoreLib/plString.cpp
  2. 6
      Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp

2
Sources/Plasma/CoreLib/plString.cpp

@ -269,7 +269,7 @@ void plString::IConvertFromIso8859_1(const char *astr, size_t size)
return;
if (size == STRLEN_AUTO)
size = strnlen(astr, -(int32_t)size);
size = strnlen(astr, size);
// Calculate the UTF-8 size
size_t convlen = 0;

6
Sources/Plasma/FeatureLib/pfPython/cyMisc.cpp

@ -994,9 +994,9 @@ PyObject* cyMisc::GetLocalAvatar()
PyObject* cyMisc::GetLocalPlayer()
{
return pyPlayer::New(plNetClientMgr::GetInstance()->GetLocalPlayerKey(),
plNetClientMgr::GetInstance()->GetPlayerName().c_str(),
plNetClientMgr::GetInstance()->GetPlayerID(),
0.0 );
plNetClientMgr::GetInstance()->GetPlayerName(),
plNetClientMgr::GetInstance()->GetPlayerID(),
0.0 );
}
/////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save