Fix dbj "member" name having a space

This commit is contained in:
drmortalwombat 2023-04-16 14:51:35 +02:00
parent 8ede3abcab
commit 2d2d030145

View File

@ -1169,7 +1169,7 @@ bool Compiler::WriteDbjFile(const char* filename)
break; break;
case DT_TYPE_STRUCT: case DT_TYPE_STRUCT:
{ {
fprintf(file, "\t\t{\"name\": \"%s\", \"typeid\": %d, \"size\": %d, \"type\": \"struct\",\" members\": [\n", dec->mIdent ? dec->mIdent->mString : "", i, dec->mSize); fprintf(file, "\t\t{\"name\": \"%s\", \"typeid\": %d, \"size\": %d, \"type\": \"struct\",\"members\": [\n", dec->mIdent ? dec->mIdent->mString : "", i, dec->mSize);
bool tfirst = true; bool tfirst = true;
Declaration* mdec = dec->mParams; Declaration* mdec = dec->mParams;
while (mdec) while (mdec)