mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
minor: Use Vector2.Zero constant and only set in condition branch where it was missing in TryParseConsole2DVector(). xbuild still compiles.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user