]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/entity/angles.h
Merge commit 'f3d0806dfea23aef768535ee2fc8e1fff9aebe9f' into master-merge
[xonotic/netradiant.git] / plugins / entity / angles.h
index 54f51f9bfe939efdbdd64f6e9ceafc63b64ea827..e44c6fcfc14ed006308f7f0e0f833f17ecab58f0 100644 (file)
@@ -73,8 +73,9 @@ inline void write_angles( const Vector3& angles, Entity* entity ){
                char value[64];
 
                if ( angles[0] == 0 && angles[1] == 0 ) {
+                       float yaw = angles[2];
                        entity->setKeyValue( "angles", "" );
-                       write_angle( angles[2], entity );
+                       write_angle( yaw, entity );
                }
                else
                {