Browse Source

Fix copypaste error in attribute accessor.

Eugene Kozlov 9 years ago
parent
commit
6a72b70b41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Scene/Serializable.h

+ 1 - 1
Source/Urho3D/Scene/Serializable.h

@@ -331,7 +331,7 @@ public:
     {
     {
         assert(ptr);
         assert(ptr);
         T* classPtr = static_cast<T*>(ptr);
         T* classPtr = static_cast<T*>(ptr);
-        (*setFunction_)(classPtr, (U)value.GetInt());
+        (*setFunction_)(classPtr, value.Get < U >());
     }
     }
 
 
     /// Class-specific pointer to getter function.
     /// Class-specific pointer to getter function.