Browse Source

Correct some issues with the pfConsole changes.

Darryl Pogue 12 years ago
parent
commit
294a398d29
  1. 2
      Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp
  2. 2
      Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h

2
Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp

@ -677,7 +677,7 @@ PF_CONSOLE_CMD( Avatar_Anim, BlendAnimPri, "string Animation, float blendFactor,
PF_CONSOLE_CMD( Avatar_Anim, PlaySimpleAnim, "string AvatarName, string Animation", "Play a simple (root not animated) one time animation on the avatar")
{
plArmatureMod *avatar = plAvatarMgr::GetInstance()->FindAvatarByModelName((char*)params[0]);
plArmatureMod *avatar = plAvatarMgr::GetInstance()->FindAvatarByModelName((const char*)params[0]);
if (avatar)
avatar->PlaySimpleAnim(plString::FromUtf8(params[1]));
}

2
Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h

@ -153,7 +153,7 @@ class pfConsoleCmdParam
operator int() const { return IToInt(); }
operator float() const { return IToFloat(); }
operator bool() const { return IToBool(); }
operator CharPtr() const { return IToString(); }
operator const CharPtr() const { return IToString(); }
operator char() const { return IToChar(); }
uint8_t GetType( void ) { return fType; }

Loading…
Cancel
Save