]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/DPatch.cpp
fixed warnings
[xonotic/netradiant.git] / contrib / bobtoolz / DPatch.cpp
index 4698c610361260efd289c4ccf704f568ac6ca379..30bb5c60029e90342021d20bd32faf4c97bf7b2e 100644 (file)
@@ -145,8 +145,8 @@ void DPatch::LoadFromPatch(scene::Instance& patch)
 
   PatchControlMatrix matrix = GlobalPatchCreator().Patch_getControlPoints(patch.path().top());
 
 
   PatchControlMatrix matrix = GlobalPatchCreator().Patch_getControlPoints(patch.path().top());
 
-  width = matrix.x();
-       height = matrix.y();
+  width = static_cast<int>(matrix.x());
+       height = static_cast<int>(matrix.y());
 
   for(int x = 0; x < height; x++)
   {
 
   for(int x = 0; x < height; x++)
   {