浏览代码

Sample.inl: fix warning

1vanK 3 年之前
父节点
当前提交
70a0c6d9bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/Samples/Sample.inl

+ 1 - 1
Source/Samples/Sample.inl

@@ -337,7 +337,7 @@ void Sample::HandleSceneUpdate(StringHash /*eventType*/, VariantMap& eventData)
     if (touchEnabled_ && cameraNode_)
     {
         Input* input = GetSubsystem<Input>();
-        for (unsigned i = 0; i < input->GetNumTouches(); ++i)
+        for (i32 i = 0; i < input->GetNumTouches(); ++i)
         {
             TouchState* state = input->GetTouch(i);
             if (!state->touchedElement_)    // Touch on empty space