When trying to debug my game I consistently get this error and with being quite a noob to Allegro and c++ I don't really have much knowledge to figure out a solution on my own.
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
on these 2 lines