From 294a398d294f8f591b17a9680022babfb3e032bc Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Wed, 20 Feb 2013 21:33:35 -0800 Subject: [PATCH] Correct some issues with the pfConsole changes. --- Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp | 2 +- Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp b/Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp index ba983660..a47b5e95 100644 --- a/Sources/Plasma/FeatureLib/pfConsole/pfAvatarConsoleCommands.cpp +++ b/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])); } diff --git a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h b/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h index f3d4ea7e..f02c98c6 100644 --- a/Sources/Plasma/FeatureLib/pfConsoleCore/pfConsoleCmd.h +++ b/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; }