mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
plGenericVar => plString
- Also fixes a bug in plGenericType::CopyFrom, where doubles would get only half copied (and therefore become corrupt)
This commit is contained in:
@ -198,11 +198,11 @@ void plCreatableListHelper::AddDouble( uint16_t id, double value )
|
||||
AddItem( id, V, true );
|
||||
}
|
||||
|
||||
const char * plCreatableListHelper::GetString( uint16_t id )
|
||||
plString plCreatableListHelper::GetString( uint16_t id )
|
||||
{
|
||||
plCreatableGenericValue * V = plCreatableGenericValue::ConvertNoRef( GetItem( id ) );
|
||||
if ( !V ) return nil;
|
||||
return (const char *)V->Value();
|
||||
if ( !V ) return plString::Null;
|
||||
return (plString)V->Value();
|
||||
}
|
||||
|
||||
int32_t plCreatableListHelper::GetInt( uint16_t id )
|
||||
|
@ -125,7 +125,7 @@ public:
|
||||
// helpers for typed arguments
|
||||
void AddString( uint16_t id, const char * value );
|
||||
void AddString( uint16_t id, std::string & value );
|
||||
const char * GetString( uint16_t id );
|
||||
plString GetString( uint16_t id );
|
||||
void AddInt( uint16_t id, int32_t value );
|
||||
int32_t GetInt( uint16_t id );
|
||||
void AddDouble( uint16_t id, double value );
|
||||
|
Reference in New Issue
Block a user