+ fix various warnings with VC++

This commit is contained in:
wmayer
2015-09-01 12:50:10 +02:00
parent 4fd3a15b98
commit db9a68feec
5 changed files with 19 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ DeriVector2 DeriVector2::getNormalized() const
{
double l=length();
if(l==0.0) {
return DeriVector2(0, 0, dx/0.0, dy/0.0);
return DeriVector2(0, 0, dx, dy);
} else {
DeriVector2 rtn;
rtn.x = x/l;