The title pretty much says it all. I am trying to load an image in C++ using agk::LoadImage, but I get this error.
Unhandled exception at 0x003EA9F4 in StarbourneRogue2.exe: 0xC0000005: Access violation reading location 0x00000004.
My code is simple:
#pragma once
//Here we load images
#include "template.h"
#include "Constants.h"
Integer playerImage = agk::LoadImage("SprPlayer.png");
Yes it's in a header file.
I hate to be so blunt, but it makes no sense. When I get the error in VS 2013 it just gives the error and points to that line of code. If I change it LoadSprite and get rid of that all together, I get the same error.
Everything is in different file, but the player does include this.
Thanks in advance
Gamejolt: http://gamejolt.com/profile/united-calamity/575975