mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
UI: Fix vec2 warning
Fix warning encountered on clang-504.0.40 on OSX 10.9: obs/window-basic-main.cpp:2884:22: warning: suggest braces around initialization of subobject [-Wmissing-braces] struct vec2 dir = {0.0f, 0.0f};
This commit is contained in:
parent
6e572d849f
commit
0fbf112491
@ -2881,9 +2881,11 @@ void OBSBasic::Nudge(int dist, MoveDir dir)
|
||||
auto func = [] (obs_scene_t*, obs_sceneitem_t *item, void *param)
|
||||
{
|
||||
MoveInfo *info = reinterpret_cast<MoveInfo*>(param);
|
||||
struct vec2 dir = {0.0f, 0.0f};
|
||||
struct vec2 dir;
|
||||
struct vec2 pos;
|
||||
|
||||
vec2_set(&dir, 0.0f, 0.0f);
|
||||
|
||||
if (!obs_sceneitem_selected(item))
|
||||
return true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user