Przeglądaj źródła

Fixes accessing non-existant form on game exit.

Ken Whatmough 13 lat temu
rodzic
commit
4eb096c76f
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      gameplay/src/Form.cpp

+ 1 - 2
gameplay/src/Form.cpp

@@ -657,8 +657,7 @@ bool Form::mouseEventInternal(Mouse::MouseEvent evt, int x, int y, int wheelDelt
 {
 {
     bool eventConsumed = false;
     bool eventConsumed = false;
 
 
-    size_t size = __forms.size();
-    for (size_t i = 0; i < size; ++i)
+    for (size_t i = 0; i < __forms.size(); ++i)
     {
     {
         Form* form = __forms[i];
         Form* form = __forms[i];
         GP_ASSERT(form);
         GP_ASSERT(form);