minor: Use Vector2.Zero constant and only set in condition branch where it was missing in TryParseConsole2DVector(). xbuild still compiles.
parent
7c121a2acc
commit
f0411dc128
|
@ -284,10 +284,11 @@ namespace OpenSim.Framework.Console
|
|||
// We don't use Vector2.TryParse() for now because for some reason it expects an input with 3 components
|
||||
// rather than 2.
|
||||
string cookedVector = CookVector(rawConsoleVector, 2, blankComponentFunc);
|
||||
vector = new Vector2(0.0f);
|
||||
|
||||
if (cookedVector == null)
|
||||
{
|
||||
vector = Vector2.Zero;
|
||||
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue