Silenced two compiler warnings
authorIngo Ruhnke <grumbel@gmail.com>
Sun, 31 Aug 2014 05:13:13 +0000 (07:13 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Sun, 31 Aug 2014 05:13:13 +0000 (07:13 +0200)
src/object/bicycle_platform.cpp
src/video/video_system.cpp

index 7387f72..43a8a68 100644 (file)
@@ -38,7 +38,7 @@ BicyclePlatform::BicyclePlatform(const Reader& reader) :
 }
 
 BicyclePlatform::BicyclePlatform(BicyclePlatform* master_) :
-  MovingSprite(*master),
+  MovingSprite(*master_),
   master(master_),
   slave(this),
   center(master->center),
index f515f56..dd736d0 100644 (file)
@@ -60,7 +60,7 @@ VideoSystem::create(VideoSystem::Enum video_system)
 
     default:
       assert(!"invalid video system in config");
-      break;
+      return {};
   }
 }