Search found 4 matches

by MadMaia3D
April 5th, 2019, 4:56 pm
Forum: Everything
Topic: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list
Replies: 7
Views: 3254

Re: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list

Chili, it's was all my fault!!!! You said it in Tutorial 12!
I forgot completely that the initialization follows the order of declaration in the header file!!!
Oh my crap brain! Now I think i will never forget! Thanks for listening!
by MadMaia3D
April 5th, 2019, 1:10 pm
Forum: Everything
Topic: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list
Replies: 7
Views: 3254

Re: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list

Hey Chili. I had the same problem again. I did this: Game::Game(MainWindow& wnd) : wnd(wnd), gfx(wnd), brickPos(80,60), brick(brickPos, 300, 300), walls(0, 0, 800, 600), ball(400, 300, -400, -800) { } In this situation the brickPos constructor isn't called... I can't initialize a class and then use ...
by MadMaia3D
April 5th, 2019, 11:43 am
Forum: Everything
Topic: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list
Replies: 7
Views: 3254

Re: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list

What file/line do you mean specifically. In you game.cpp ctor I do not see any Vec2 being initialized. Hey Chili! Looking at the repo at GitHub I saw that the line wasn't there! So I opened the solution and the bug persisted... I simply deleted the line that was being ignored... build it, inserted ...
by MadMaia3D
April 5th, 2019, 8:10 am
Forum: Everything
Topic: F-Annoyed tutorial - Bug? constructor ignored in Class initializer list
Replies: 7
Views: 3254

F-Annoyed tutorial - Bug? constructor ignored in Class initializer list

I was ready to start implementing the brick-ball collision. So I was doing some test the game.cpp when something strange started happening. I don't know if I am doing something wrong. I was trying to "call" a Vector 2 constructor inside the Class initializer list, but when I run the application it i...