hedgewars/uAI.pas
branchhedgeroid
changeset 6338 633af6fec34f
parent 6336 cf4c65f9cbbe
child 6341 ccc0a58e123d
child 6343 9df5a486f41e
--- a/hedgewars/uAI.pas	Sat Nov 12 17:55:23 2011 +0100
+++ b/hedgewars/uAI.pas	Sat Nov 12 18:02:55 2011 +0100
@@ -320,7 +320,10 @@
 //TODO: sdl_thread works on device but crashes in simulator, most likely because of outdated toolchain
 BeginThread(@Think, Me, ThinkThread);
 {$ELSE}
+{$IFDEF SDL13}
 ThinkThread := SDL_CreateThread(@Think, nil, Me);
+{$ELSE}
+ThinkThread := SDL_CreateThread(@Think, Me);
 {$ENDIF}
 AddFileLog('Thread started');
 end;