use copy construction to pass the config along so the main constructor gets run once.
This commit is contained in:
parent
f2bb0b2e79
commit
f8e8d704b5
2 changed files with 4 additions and 3 deletions
src
|
@ -293,8 +293,7 @@ int main(int, char *argv[])
|
|||
}
|
||||
|
||||
EventThread eventThread;
|
||||
RGSSThreadData rtData(&eventThread, argv[0], win);
|
||||
rtData.config = conf;
|
||||
RGSSThreadData rtData(&eventThread, argv[0], win, conf);
|
||||
|
||||
/* Start RGSS thread */
|
||||
SDL_Thread *rgssThread =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue