Fixed a compile time warning.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
We really need to get rid of relative includes...

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Windows service handler / ACE compatibility fixed.

ACE does try to detect and define the main function but fails to do
so properly.

To avoid issues with building mangos-zero under Windows, we undefine
main so that ACE will not try to redirect it to its own ACE_MAIN
definitions.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Script library named changed.

The script library has been renamed to mangos-scripts to prevent
issues with conflicting old libraries.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Prevent resource leaks in DBC loader.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Closed a few resource leaks.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Added missing bounds check in loop.

Missing bounds check for extra iterator increment in loop was added.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Compiler warning for asserts fixed.

The asserts have been combined with a string which always resolved
to true. The strings have been moved to code comments.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Closed memory leaks and compiler warnings.

A bunch of memory leaks and compiler warnings have been resolved.
We are heading towards a warning free build.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Added fix for issue found by Coverity Scan.

The system resource will not be reclaimed and reused, reducing the
future availability of the resource.

In MMAP::​TerrainBuilder::​loadMap(unsigned int, unsigned int,
unsigned int, MMAP::​MeshData &, MMAP::​Spot):

Leak of memory or pointers to system resources (CWE-404)

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Added fix for issue found by Coverity Scan.

The system resource will not be reclaimed and reused, reducing the
future availability of the resource.

In MMAP::​MMapManager::​loadMapData(unsigned int):
Leak of memory or pointers to system resources (CWE-404)

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Added a missing check.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>
Windows build fix for script library.

Signed-off-by: Daniel S. Reichenbach <daniel@kogitoapp.com>