Skip to content

Commit c4498c7

Browse files
committed
修正u3d插件生成, int64可能丢失数据
kbengine#632
1 parent 3e10c30 commit c4498c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kbe/src/server/tools/kbcmd/client_sdk_unity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ bool ClientSDKUnity::writeTypeItemType_AliasName(const std::string& itemName, co
14681468
sourcefileBody_ += fmt::format("\t\tpublic static implicit operator {}({} value)\n\t\t{{\n", ntype, itemName);
14691469
sourcefileBody_ += fmt::format("\t\t\treturn value.value;\n\t\t}}\n\n");
14701470

1471-
sourcefileBody_ += fmt::format("\t\tpublic static implicit operator {}(int value)\n\t\t{{\n", itemName);
1471+
sourcefileBody_ += fmt::format("\t\tpublic static implicit operator {}({} value)\n\t\t{{\n", itemName, ntype);
14721472
sourcefileBody_ += fmt::format("\t\t\t{} tvalue = ({})value;\n\t\t\treturn new {}(tvalue);\n\t\t}}\n\n", ntype, ntype, itemName);
14731473

14741474
sourcefileBody_ += fmt::format("\t\tpublic static {} MaxValue\n\t\t{{\n", ntype);

0 commit comments

Comments
 (0)