diff options
| author | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2019-05-27 00:18:15 +0200 |
| commit | 87774a0a21f8d2998b4dc13e989005270476ae92 (patch) | |
| tree | 4228376c752b1760be44cc8582725ecac522939b /examples/others | |
| parent | 241c4c8d14225bdf30c168802d4b16b59d5043e0 (diff) | |
| download | raylib-87774a0a21f8d2998b4dc13e989005270476ae92.tar.gz raylib-87774a0a21f8d2998b4dc13e989005270476ae92.zip | |
Review variables initialization
Diffstat (limited to 'examples/others')
| -rw-r--r-- | examples/others/raudio_standalone.c | 2 | ||||
| -rw-r--r-- | examples/others/rlgl_standalone.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/others/raudio_standalone.c b/examples/others/raudio_standalone.c index 02720837..63d5b8d2 100644 --- a/examples/others/raudio_standalone.c +++ b/examples/others/raudio_standalone.c @@ -94,7 +94,7 @@ int main() { // Initialization //-------------------------------------------------------------------------------------- - static unsigned char key; + static unsigned char key = 0; InitAudioDevice(); diff --git a/examples/others/rlgl_standalone.c b/examples/others/rlgl_standalone.c index 42aec2e2..d8100ce5 100644 --- a/examples/others/rlgl_standalone.c +++ b/examples/others/rlgl_standalone.c @@ -131,7 +131,7 @@ int main(void) rlClearColor(245, 245, 245, 255); // Define clear color rlEnableDepthTest(); // Enable DEPTH_TEST for 3D - Camera camera; + Camera camera = { 0 }; camera.position = (Vector3){ 5.0f, 5.0f, 5.0f }; // Camera position camera.target = (Vector3){ 0.0f, 0.0f, 0.0f }; // Camera looking at point camera.up = (Vector3){ 0.0f, 1.0f, 0.0f }; // Camera up vector (rotation towards target) |
