Core:
* removed another double if procedure to fix any further potential errors.
* fixed a pragma error, the original method not only was incorrect but also did not work

Signed-off-by: Bootz <bootz@projectskyfire.org>