Ver Fonte

Fix a couple of warnings

Daniele Bartolini há 12 anos atrás
pai
commit
b6204a290d
2 ficheiros alterados com 2 adições e 0 exclusões
  1. 1 0
      engine/resource/FontResource.h
  2. 1 0
      engine/resource/UnitResource.cpp

+ 1 - 0
engine/resource/FontResource.h

@@ -168,6 +168,7 @@ public:
 		}
 
 		CE_FATAL("Glyph not found");
+		return FontGlyphData();
 	}
 
 private:

+ 1 - 0
engine/resource/UnitResource.cpp

@@ -83,6 +83,7 @@ uint32_t compute_link_depth(const GraphNode& node, const Array<GraphNode>& nodes
 	}
 
 	CE_FATAL("Node not found");
+	return 0;
 }
 
 //-----------------------------------------------------------------------------