Fix custom func decode play_x
This commit is contained in:
committed by
Raphael Coeffic
parent
47a3d343b5
commit
7a526a1786
@@ -253,9 +253,11 @@ bool convert<CustomFunctionData>::decode(const Node& node,
|
|||||||
break;
|
break;
|
||||||
case FuncPlayPrompt:
|
case FuncPlayPrompt:
|
||||||
case FuncPlayScript:
|
case FuncPlayScript:
|
||||||
case FuncBackgroundMusic:
|
case FuncBackgroundMusic: {
|
||||||
strncpy(rhs.paramarm, def.str().c_str(), sizeof(rhs.paramarm)-1); // TODO fix eg def: engarm,1x
|
std::string file_str;
|
||||||
break;
|
getline(def, file_str, ',');
|
||||||
|
strncpy(rhs.paramarm, file_str.c_str(), sizeof(rhs.paramarm)-1);
|
||||||
|
} break;
|
||||||
case FuncReset: {
|
case FuncReset: {
|
||||||
try {
|
try {
|
||||||
def >> rhs.param;
|
def >> rhs.param;
|
||||||
|
|||||||
Reference in New Issue
Block a user