Skip to content

Commit

Permalink
check for correct prefix in hex property decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
krawthekrow authored and jacob1 committed Jul 7, 2018
1 parent a3a3b3b commit 143ba20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/game/PropertyTool.cpp
Expand Up @@ -109,7 +109,7 @@ void PropertyWindow::SetProperty()
//0xC0FFEE
v = value.Substr(2).ToNumber<unsigned int>(Format::Hex());
}
else if(value.length() > 1 && value.BeginsWith("0"))
else if(value.length() > 1 && value.BeginsWith("#"))
{
//#C0FFEE
v = value.Substr(1).ToNumber<unsigned int>(Format::Hex());
Expand Down

0 comments on commit 143ba20

Please sign in to comment.