mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-07-31 13:40:12 +02:00
check for correct prefix in hex property decoding
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user