Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song committed Jul 17, 2024
1 parent 08d870f commit 36bf3bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions native/cocos/editor-support/spine-wasm/spine-type-export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ void VECTOR_STD_COPY_SP(std::vector<T> &stdVector, Vector<T> &spVector) {
}

String* constructorSpineString(emscripten::val name, bool own) {
std::string tmp = name.as<std::string>();
return new String(tmp.c_str(), own);
return new String(name.as<std::string>().c_str(), own);
}

using SPVectorFloat = Vector<float>;
Expand Down

0 comments on commit 36bf3bc

Please sign in to comment.