Skip to content

Commit

Permalink
Fix msvc compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 31, 2019
1 parent c8960d1 commit 58a3411
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/simulation/Sign.cpp
Expand Up @@ -116,11 +116,11 @@ String sign::getText(Simulation *sim)
}
else if (between_curlies == "type")
{
formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? "empty" : "Empty"));
formatted_text << (part ? sim->BasicParticleInfo(*part) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
}
else if (between_curlies == "ctype")
{
formatted_text << ((part && part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : (formatted_text.Size() ? "empty" : "Empty"));
formatted_text << ((part && part->ctype && sim->IsValidElement(part->ctype)) ? sim->ElementResolve(part->ctype, -1) : (formatted_text.Size() ? String::Build("empty") : String::Build("Empty")));
}
else if (between_curlies == "life")
{
Expand Down

0 comments on commit 58a3411

Please sign in to comment.