Login
User Name:

Password:



Register

Forgot your password?
void nanny_get_new_race -- comm.c
Mar 13, 2025 7:08 am
By Elwood
IPv6
Jan 25, 2025 10:45 pm
By Samson
mudstrlcpy and mudstrlcat
Jan 18, 2025 5:23 pm
By Samson
I3 and IMC
Jan 17, 2025 9:35 pm
By Samson
AFKMud 2.5.1
Jan 17, 2025 2:22 pm
By Samson
SWFotEFUSS 1.5.3
Author: Various
Submitted by: Samson
SWRFUSS 1.4.3
Author: Various
Submitted by: Samson
SmaugFUSS 1.9.8
Author: Various
Submitted by: Samson
AFKMud 2.5.2
Author: AFKMud Team
Submitted by: Samson
SmaugFUSS 1.9.7
Author: Various
Submitted by: Samson
Users Online
Anthropic, Amazonbot, Bytespider, Bing, AhrefsBot

Members: 0
Guests: 2
Stats
Files
Topics
Posts
Members
Newest Member
507
3,812
19,722
591
TracySpencer

» SmaugMuds » General » Coding » Oasis OLC snippet error
Forum Rules | Mark all | Recent Posts

Oasis OLC snippet error
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Mar 24, 2018 5:44 pm   Last edited Mar 24, 2018 5:45 pm by joeyfogas
Go to the top of the page
Go to the bottom of the page

joeyfogas
Apprentice
GroupMembers
Posts78
JoinedAug 28, 2016

 
was using the Oasis OLC code submitted here by Vladaar and getting this


act_move.c:3383:14: error: ‘edir’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
     move_char( ch, get_exit( ch->in_room, edir ), 0 );
     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



edit: This is the buildwalk part of the code
Anyone else used this on SmaugFUSS and get it working?

Post is unread #2 Mar 25, 2018 10:19 pm   
Go to the top of the page
Go to the bottom of the page

joeyfogas
Apprentice
GroupMembers
Posts78
JoinedAug 28, 2016

 
ok not sure if it is a 'solution', but I just commented out that line and everything works fine.

Post is unread #3 Mar 28, 2018 8:49 am   Last edited Mar 28, 2018 8:50 am by Vladaar
Go to the top of the page
Go to the bottom of the page

Vladaar
Apprentice
GroupMembers
Posts57
JoinedNov 24, 2016

 
Wherever edir was declared you should do...

Change it to short edir =0;

That initializes it.

I would uncomment that movechar call I'm sure you need it.

Pages:<< prev 1 next >>