Added WriteString to jsonfile which takes an std::string

This commit is contained in:
Jordan Cristiano
2015-07-13 21:09:07 -04:00
parent 04b79ff3f8
commit 2bf16179ad
3 changed files with 12 additions and 3 deletions

View File

@ -27,7 +27,7 @@ namespace DemHandlers
bool Dem_ConsoleCmd_JsonWrite_Internal(JsonWrite& jsonbuf, DemMsg::Dem_ConsoleCmd* data)
{
jsonbuf.WriteString("command", data->command.c_str(), data->command.length());
jsonbuf.WriteString("command", data->command);
return true;
}
}