Permalink
Browse files

check for correct prefix in hex property decoding

  • Loading branch information...
krawthekrow authored and jacob1 committed Jun 27, 2018
1 parent a3a3b3b commit 143ba201912a48d1b75cf66a8ff6e5614c79b413
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/game/PropertyTool.cpp
@@ -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());

0 comments on commit 143ba20

Please sign in to comment.